Skip to content

Fix Web UI session creation and slash command behavior#1322

Merged
wsp1911 merged 4 commits into
GCWing:mainfrom
wsp1911:fix/cron
Jun 26, 2026
Merged

Fix Web UI session creation and slash command behavior#1322
wsp1911 merged 4 commits into
GCWing:mainfrom
wsp1911:fix/cron

Conversation

@wsp1911

@wsp1911 wsp1911 commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

Improve Web UI session handling and chat input behavior.

  • Deduplicate concurrent session creation to avoid duplicate empty sessions during remote workspace initialization.
  • Add a Copy ID action to the nav session overflow menu, with localized success/failure messages.
  • Refine slash command picker dismissal for path-like input, whitespace after slash commands, trailing spaces, and Escape handling.
  • Include persisted remote hostnames when matching sessions to workspaces.

Fixes #

Type and Areas

Type:

Feature / bug fix / test / docs

Areas:

Web UI, session management, chat input, navigation session menu, i18n resources, developer docs

Motivation / Impact

This improves reliability and usability in the Web UI:

  • Remote workspace startup should no longer create duplicate empty sessions from concurrent creation calls.
  • Users can copy a session ID directly from the session row menu.
  • Slash command suggestions behave more predictably when users type paths, add spaces, or dismiss the picker.
  • Persisted remote sessions are matched more accurately by workspace hostname.

Verification

  • pnpm run type-check:web - passed
  • pnpm run i18n:audit - passed with 0 warnings
  • pnpm --dir src/web-ui run test:run src/infrastructure/services/flow-chat-manager/SessionModule.test.ts src/flow_chat/components/RichTextInput.test.tsx src/flow_chat/utils/slashCommand.test.ts src/flow_chat/utils/sessionOrdering.test.ts - passed, 3 test files / 34 tests

Reviewer Notes

This PR is scoped to Web UI behavior and supporting docs/i18n resources. The most important regression risk is session selection/creation behavior around remote workspaces, so review should pay particular attention to concurrent session creation and persisted remote workspace matching.

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.

wsp1911 added 4 commits June 27, 2026 00:16
- Avoid opening the slash command picker for path-like input such as /users/alice
- Close the picker once the leading slash token contains whitespace, such as /b
- Preserve trailing spaces for slash-leading rich text input so picker dismissal can detect them
- Keep input content when dismissing the slash picker with Escape
- Add focused tests for slash picker query parsing and rich text trailing spaces
- add a Copy ID item to the session row overflow menu
- copy session IDs with the shared clipboard fallback helper
- add localized copy success/failure messages
- document the new session menu test IDs
- register pending session creation before async model config loading
- prevent remote workspace initialization from creating duplicate empty sessions
- add regression coverage for concurrent create calls with the same creation key
@wsp1911 wsp1911 marked this pull request as ready for review June 26, 2026 16:26
@wsp1911 wsp1911 merged commit 648ca87 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