Repository navigation
feat: choose workspace run modes from the composer - #4293
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
6b79bcc to
616e905
Compare
4822ddf to
2d4d532
Compare
|
@OmarMcAdam Please resolve the explicit product decision in this PR: Run everything overrides global deny rules and outside-workspace/doom-loop prompts under the engine merge order. Confirm the intended permission semantics before merging this stack. Holding for your review under the current merge instructions. |
616e905 to
508b925
Compare
2d4d532 to
3e87deb
Compare
3e87deb to
77d4948
Compare
96c497e to
afbc0f8
Compare
Test evidence — workspace-run-mode-is-opt-in-confirms-keep-going-and-preserves-policy-when-hidde — ✅ passedSHA afbc0f8 · engine v1 ✅ passed · 0 expectations passed · 0 failed · 0 pending
[world] desktop(daytona) · workspace(/tmp/openwork-empty-session-1788639949471) · session("New task") Test run created 2026-09-05T20:25:49.448Z · Source: |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (afbc0f8a7fa6903ffc0d419edec7a9db90f665a9). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
…he snapshot-error composer test apps/app/tests/composer-editable-on-snapshot-error.test.tsx has been red on dev since #4293 (composer renders WorkspaceRunModeMenu, which reads DesktopConfigProvider) and #4650 (message list renders ActionContextMenu, which reads PlatformProvider). Both providers exist at the real app root, so this is test drift, not a product regression. Mirror the fix already applied to composer-focus-continuity.test.tsx in #4631 and #4640.
…alette (#4722) * fix(app): list every Advanced section in the developer-mode command palette The empty-query settings preview was capped at 6, which matched the six Advanced sections when #4505 put them first in developer mode. #4293 added a seventh section (Workspace run mode), so Developer fell off the list. Size the preview from ADVANCED_SETTINGS_SECTIONS instead. * test(app): re-express palette settings expectations for Advanced section items Both claims went stale when #4505 added per-section Advanced items: the id list omitted them, and "reset" now surfaces Advanced › Organization server (keyword "reset server") ahead of the Advanced tab. Red on origin/dev before this change. * test(evals): expect Workspace run mode in the developer-mode command palette Tightens command-palette-search: the seventh Advanced section must be listed without a search and reachable by its alias.
…r (missing PlatformProvider / run-mode menu) (#4802) apps/app/tests/composer-editable-on-snapshot-error.test.tsx has been red on dev since #4293 (composer renders WorkspaceRunModeMenu, which reads DesktopConfigProvider) and #4650 (message list renders ActionContextMenu, which reads PlatformProvider). Both providers exist at the real app root, so this is test drift, not a product regression. Mirror the fix already applied to composer-focus-continuity.test.tsx in #4631 and #4640.
Summary
Add an opt-in workspace run-mode control immediately left of the composer attachment button, in both new tasks and existing chats.
Scope
Replaces this PR's older settings-only implementation with a standalone change targeting
dev. It no longer depends on #4292; that PR's workspace-rule editor and approval actions remain separate.Verification
Verdict: Incomplete for the extended permission-boundary matrix; the core desktop journey Passed. Current head:
afbc0f8a7fa6903ffc0d419edec7a9db90f665a9, based ondevat46d13af3f.OPENWORK_EVAL_REF=afbc0f8a7fa6903ffc0d419edec7a9db90f665a9 pnpm evals:e2e composer-run-mode. Printedplacement: daytona (daytona CLI authenticated); exit 0; 1 passed, 0 failed, 0 skipped. Fresh isolated desktop, exact-head checkout, all 6 journey steps passed. Published test evidence.pnpm --filter openwork-server exec bun --conditions=development test src/workspace-run-mode.test.ts; exit 0; 11 passed, 0 failed. Covers JSONC edits, authorization, invalid configurations, busy sessions, refresh retries, and v2 gating. These are component checks, not journey proof.pnpm --filter @openwork/app typecheck,pnpm --filter openwork-server typecheck, andgit diff --check; exit 0.The desktop journey covers the default-off flag, all three choices, cancellation/confirmation, effective engine permissions, renderer reload, and preserving a saved mode when the flag is disabled. No merge or release is included.