Skip to content

fix(sessions): persist renames in dashboard-without-enhancedChat mode - #715

Open
bdtsimon wants to merge 1 commit into
outsourc-e:mainfrom
bdtsimon:fix/session-rename-not-persisted
Open

fix(sessions): persist renames in dashboard-without-enhancedChat mode#715
bdtsimon wants to merge 1 commit into
outsourc-e:mainfrom
bdtsimon:fix/session-rename-not-persisted

Conversation

@bdtsimon

Copy link
Copy Markdown

Problem

In the PATCH /api/sessions handler, when the gateway reports capabilities.dashboard.available && !capabilities.enhancedChat, the branch returned:

return json({ ok: true, /* … */ updated: false })

…without persisting anything. A rename in that mode looks like it succeeded (the UI gets ok: true), but nothing reaches the agent — the session keeps its raw first-message title on the native dashboard, and re-opening the list shows the old name.

Fix

Persist the rename through the existing dashboardFetch helper — PATCH /api/sessions/{id} (which resolves friendly ids too) — surface a real error when the dashboard rejects it, and echo the saved title back to the client (updated: true).

Single-concern, no new dependencies: it reuses dashboardFetch from server/gateway-capabilities and mirrors the shape the other PATCH branches already return.

Notes

  • The updateSession() path (full enhancedChat) and the local-session path are unchanged.
  • On failure the client now gets { ok: false } with the dashboard's detail (or a 502 when the dashboard is unreachable) instead of a false success.

Reviewed by bdtsimon

🤖 Generated with Claude Code

When the gateway reports `dashboard.available && !enhancedChat`, the
PATCH /api/sessions handler returned `{ ok: true, updated: false }`
without saving anything. A rename in that mode looked like it succeeded
in the UI but never reached the agent, so the session kept its raw
first-message title on the native dashboard.

Persist the rename through `dashboardFetch` (PATCH /api/sessions/{id},
which resolves friendly ids), surface a real error when the dashboard
rejects it, and echo the saved title back to the client.

Reviewed by bdtsimon

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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