Skip to content

/chat-workspace: live backend chat flow and scoped persistence #2031

Description

@rmusser01

Parent tracker: #1239

Goal

Make /chat-workspace work as a live backend chat surface, not only a scaffolded route.

Current evidence

The page already routes through WorkspaceChatPanel and useMessageOption({ scope }), with workspace-id send guarding and stop-generation plumbing. The missing proof is a live, authenticated flow that covers model/persona selection, send, streaming, stop, error recovery, and scoped persistence.

Acceptance criteria

  • Model selection is usable from /chat-workspace or clearly inherited through an adjacent shared control without leaving users stranded.
  • Persona/assistant selection is usable from /chat-workspace or clearly inherited through an adjacent shared control.
  • Sending a message with a hydrated workspace creates or resumes a workspace-scoped server chat.
  • Streaming responses render incrementally and expose a working stop-generation control.
  • Error recovery preserves the draft and staged context when a send fails.
  • Workspace-scoped conversation history persists, reloads, and switches cleanly when users change workspaces.
  • No send path can create a global or empty-workspace chat while workspace identity is still hydrating.

Verification target

Add focused unit/integration coverage plus a live-backend browser proof once the fixture from the coverage issue is available.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions