{"version":"2.1.286","anchor":"plugin-promptsubmit-accepts-asuser-and-marks-origin","canonical_anchor":"plugin-promptsubmit-accepts-asuser-and-marks-origin","heading":"Plugins can submit a prompt marked as coming from the user","tier":"use","area":"Plugins","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.286\/e\/plugin-promptsubmit-accepts-asuser-and-marks-origin","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.286","markdown":"### Plugins can submit a prompt marked as coming from the user\n\nPlugins that submit prompts can now pass an `asUser` flag, which marks the queued prompt as sent on the user's behalf\n\n**Unclear.** How Claude Code treats a prompt marked as sent on the user's behalf is not clear.\n\n**What**\n\nPlugins can queue a prompt for Claude through their `prompt.submit` function. It now accepts an `asUser` flag. When it is true, the queued prompt is labelled as coming from that plugin and as sent on the user's behalf. Before, such prompts were only labelled with the plugin's name.\n\n**Why**\n\nThis is part of the plugin runtime, which is not documented, so the practical effect is limited to plugins that choose to set the flag.\n\n- Area: Plugins\n- Names: `asUser`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5"}