Skip to content

fix(web): chats are titled by the agent's display name and land without a modal (CL-8439) - #939

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-8439-agent-display-name
Sep 18, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-8439-agent-display-name

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

  • Chat titles (heading, sidebar row) always show the agent's display name instead of falling back to mail metadata that could surface a run address.
  • The first-run tour no longer auto-opens on landing at /, where it could overlay the chat the person was just redirected onto; it now opens only via an explicit "Take the tour" command.

Changes

  • apps/web/src/chat/threads-api.ts: chatTitle now prioritizes the agent's display name, falling back to the opening turn's subject/body only when the agent can't be resolved; exported for testing.
  • apps/web/src/pages/chat-thread-page.tsx: the chat heading uses chat.agentName directly.
  • apps/web/src/shell/first-run-tour-store.ts (new): a small external store gating the tour's open state.
  • apps/web/src/shell/first-run-tour.tsx: reads open state from the store instead of auto-starting on mount.
  • apps/web/src/command-palette-actions.ts: adds a "Take the tour" command that opens the tour explicitly.

Testing

  • bun test src/chat/threads-api.test.ts
  • bun run check (typecheck, lint, fmt, test) — all green
  • Live verification against a local dev stack was not possible: the running instance at http://localhost:5173 required a signed-in session and no test credentials were available.

@linear-code

linear-code Bot commented Sep 18, 2026

Copy link
Copy Markdown

CL-8439

Covers the new priority in chatTitle: agent name first, opening turn
subject/body only when the agent can't be resolved.
…ut a modal (CL-8439)

The chat heading, sidebar row, and composer placeholder all derived
from mail metadata that could surface a run address; title them by
the agent's display name instead, falling back to the opening turn's
subject only when the agent itself can't be resolved. Landing on `/`
could also drop the first-run tour's overlay over the chat it just
redirected onto — the tour now only opens on an explicit "Take the
tour" command, never automatically.
@TheGreatAxios
TheGreatAxios force-pushed the cl-8439-agent-display-name branch from 555b727 to 95954a9 Compare September 18, 2026 19:26
@TheGreatAxios
TheGreatAxios merged commit ddee976 into main Sep 18, 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