feat(cowork): replace full-screen permission modals with a lightweight bottom-docked panel - #18
Open
WuFenG-Hub wants to merge 1 commit into
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
The cowork permission confirmation (tool permissions such as Bash/Edit, and AskUserQuestion) is rendered as a full-screen centered modal (
fixed inset-0backdrop 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+CoworkQuestionWizardwith a single bottom-docked, non-blocking confirmation panel (CoworkPermissionPanel):[Deny] [Approve]small buttons; details expand inside the panel (tool JSON / options), not as a new full-screen layer.1/Nstepper (no separate wizard).rm -rf,sudo,dd,mkfs, ...) get a red border + warning, still without covering the screen.bypassPermissionsauto-confirm (auto-confirmheader) logic incoworkPermissionRisk.tsis unchanged.Contract preserved
The permission request/response contract is untouched:
allow/denywithupdatedInput(including questionanswers) is passed through identically, so the cowork runner flow is unaffected.Verification
npm run buildpasses.