description: "Plan-mode status chip for the Web GUI: the composer control that shows plan mode is on and turns it off; for users and maintainers of plan mode."
English | 中文
This package renders the plan-mode status chip in the Web GUI: when the host-computed projection's effective target is plan mode, the composer shows a warn-colored "Plan ×" button that turns plan mode off; otherwise the seat stays empty. Plan mode itself — the /plan command, the committed plan/mode state, the projection unit, and the policy section — belongs to dsh-plan-mode; this package only renders the projection and sends what a user could equally type. The model exits plan mode through the stable exit_plan_mode tool; its plan review uses the composed Web question channel.
Mount this plugin alongside ui-conversation and dsh-plan-mode; the chip then occupies the composer's plan seat to the right of the access-mode control whenever plan mode is active. Enter plan mode through the /plan command path — choose Plan from the composer's + Command menu or type /plan — and turn it off with the chip.
While the effective target is plan mode, the seat renders the warn-colored "Plan ×" status button, which executes /plan off. Otherwise the seat stays empty: a host without plan mode, or a Draft with no session, shows nothing. While plan mode is the effective target, the composer textarea's placeholder switches to the plan-task hint — "describe your task to generate plan" — unless the owning surface supplies its own placeholder.
Admission failures (matched: false, business errors, transport faults) surface as an inline error and the chip stays until the projection confirms the exit.
Read these pages when the plan surface is not enough. They move from the chip to the plan-mode domain and the composer shell.
/plan command, the projection, and the policy section.conversation.input.plan seat and the placeholder locale keys.exit_plan_mode tool schema the model uses to leave plan mode.Indirectly, through the /plan off command line the chip dispatches: dsh-plan-mode owns the model-visible policy section, the exit-tool schema, and the logged state that line drives.
Entering or leaving plan mode changes the active plan:policy system-prompt section and therefore the request prefix; the chip itself adds no prompt content.
These limits define the current plan chip. They are current package constraints, not a plan-mode comparison or a task backlog.
Runtime invariant: No companion is published. Plan state and boundary ownership are audited by dsh-plan-mode, while the control is a slot effect whose declaration, registration, and teardown are exercised by this package.