Skip to content

spike: Clarify the distinction between Session and Chat tabs in agent detail #962

Closed

Description

@vybe

Summary

The agent detail page exposes both a "Chat" tab and a "Session" tab. The difference is not visible from the UI — a user with no context cannot tell which one to use, or why both exist. Decide what the right framing is, then update the UI to communicate it.

Context

Reported during a UI/UX review session. The platform actually has two semantically different chat surfaces:

  • Chat (chat_sessions / chat_messages — the older surface) — each turn is essentially stateless from the model's perspective beyond chat history. Documented under "Persistent Chat Features" in docs/memory/architecture.md.
  • Session (agent_sessions / agent_session_messages — SESSION_TAB_2026-04, default-on since 2026-05-04) — each turn calls claude --print --resume <uuid>, preserving Claude Code's tool-result memory, mid-skill state, and reasoning state across turns. Strictly parallel to Chat — separate router, store, and component on purpose.

This is a product/UX discussion, not a bug — figure out the right framing before writing code.

Open Questions

  • Are both surfaces here to stay long-term, or is Session intended to eventually replace Chat?
  • If both stay, what's the user-facing language? ("Session = remembers tool state across turns" vs "Chat = scratchpad" — find the right framing)
  • Should the default surface change? Today Chat is first, Session is second.
  • Do we need both tabs at all, or can the UI auto-route to one based on capability?

Acceptance Criteria

  • Decision recorded (issue comment or short doc) on whether Session and Chat both stay, or whether one is deprecated
  • User-facing copy drafted — tooltip / subtitle on each tab that a non-engineer can understand
  • If both stay: UI updated with the new copy + tab order decision
  • If one is deprecated: migration plan for sessions / messages on the deprecated surface

Technical Notes

  • Architecture references: "Session Tab Features" and "Persistent Chat Features" sections of docs/memory/architecture.md
  • Backend: src/backend/routers/sessions.py (Session) vs src/backend/routers/chat.py (Chat)
  • Frontend: SessionPanel.vue vs the Chat tab component
  • Tagged as a spike — output is a decision + small UI PR, not a full rebuild

Activity

  1. added
    priority-p2
    type-feature
    theme-ui-ux
    on May 28, 2026
  2. added
    complexity-low
    status-incubating
    on Jun 12, 2026
  3. vybe commented on Jul 3, 2026

    @vybe
    ContributorAuthor

    Readiness triage 2026-07-03: superseded — #1112 shipped the unified Chat tab (single Chat tab with a Session-mode toggle, default ON), which resolved the Session-vs-Chat framing this spike was asking for.

  4. removed
    status-incubating
    on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-lowpriority-p2theme-ui-uxtype-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions