Skip to content

feat(cowork): replace full-screen permission modals with a lightweight bottom-docked panel - #18

Open
WuFenG-Hub wants to merge 1 commit into
metaid-developers:mainfrom
WuFenG-Hub:feat/lightweight-permission-panel
Open

feat(cowork): replace full-screen permission modals with a lightweight bottom-docked panel#18
WuFenG-Hub wants to merge 1 commit into
metaid-developers:mainfrom
WuFenG-Hub:feat/lightweight-permission-panel

Conversation

@WuFenG-Hub

Copy link
Copy Markdown

Background

The cowork permission confirmation (tool permissions such as Bash/Edit, and AskUserQuestion) is rendered as a full-screen centered modal (fixed inset-0 backdrop covering the whole viewport). This blocks the user from scrolling back to re-read the surrounding conversation before deciding, and the modal is visually heavy for a quick allow/deny.

Change

Replace CoworkPermissionModal + CoworkQuestionWizard with a single bottom-docked, non-blocking confirmation panel (CoworkPermissionPanel):

  • Docks at the bottom like a browser download bar — no full-screen backdrop, the conversation stays readable and scrollable.
  • Compact one-line collapsed state: icon + one-line summary + [Deny] [Approve] small buttons; details expand inside the panel (tool JSON / options), not as a new full-screen layer.
  • AskUserQuestion options render as compact pills; multi-question uses an in-panel 1/N stepper (no separate wizard).
  • Risk-tiered emphasis: dangerous Bash patterns (rm -rf, sudo, dd, mkfs, ...) get a red border + warning, still without covering the screen.
  • bypassPermissions auto-confirm (auto-confirm header) logic in coworkPermissionRisk.ts is unchanged.

Contract preserved

The permission request/response contract is untouched: allow/deny with updatedInput (including question answers) is passed through identically, so the cowork runner flow is unaffected.

Verification

  • Changed files lint clean; npm run build passes.
  • Production bundle contains the new panel + slide-up animation; old modal components removed.
  • Real-harness interaction test pending next release (dual-instance data-sharing makes a dev-side live test non-trivial).

…t bottom-docked panel

Bottom-docked, non-blocking confirmation bar for tool permissions and
AskUserQuestion (single/multi). No full-screen backdrop: conversation stays
readable and scrollable. Risk-tiered visual emphasis for dangerous commands.
Replaces CoworkPermissionModal and CoworkQuestionWizard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant