Skip to content

fix(web-ui): lock chat input mode controls for Claw sessions#1323

Merged
wsp1911 merged 1 commit into
GCWing:mainfrom
wsp1911:fix/cron
Jun 26, 2026
Merged

fix(web-ui): lock chat input mode controls for Claw sessions#1323
wsp1911 merged 1 commit into
GCWing:mainfrom
wsp1911:fix/cron

Conversation

@wsp1911

@wsp1911 wsp1911 commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

Centralize chat input mode policy so fixed-mode sessions consistently hide mode controls.

Fixes #

Type and Areas

Type:

bug fix

Areas:

web UI, flow chat

Motivation / Impact

Assistant (Claw) sessions could show the mode capsule and allow mode switching when opened after a normal session, especially while assistant workspace resolution lagged behind the active session state.

This PR treats Claw, Cowork, assistant workspace, and ACP sessions as fixed-mode contexts for ChatInput. The mode capsule, plus-menu mode options, slash-command modes, and keyboard mode cycling now follow the same policy.

Verification

  • pnpm --dir src/web-ui run test:run src/flow_chat/utils/chatInputMode.test.ts
    • Passed: 1 test file, 27 tests.
  • pnpm run type-check:web
    • Passed.

Reviewer Notes

The main behavior is now owned by src/web-ui/src/flow_chat/utils/chatInputMode.ts via resolveChatInputModePolicy and resolveSwitchableChatInputModes, keeping ChatInput from scattering Claw/Cowork special cases.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

Centralize chat input mode policy so fixed collaboration sessions are
handled consistently across the mode capsule, boost menu, slash commands,
and keyboard mode cycling.

- Treat Claw, Cowork, assistant workspace, and ACP sessions as fixed-mode
  contexts
- Keep Claw sessions pinned even when assistant workspace resolution is
  temporarily stale
- Filter fixed collaboration modes out of selectable chat input boosts
- Add focused coverage for fixed-mode policy and Claw synchronization
@wsp1911 wsp1911 marked this pull request as ready for review June 26, 2026 16:53
@wsp1911 wsp1911 merged commit c409069 into GCWing:main Jun 26, 2026
4 checks passed
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