Skip to content

feat: allow session rename - #790

Open
harshil-2096 wants to merge 5 commits into
mainfrom
feat/session-rename-ui
Open

harshil-2096 wants to merge 5 commits into
mainfrom
feat/session-rename-ui

Conversation

@harshil-2096

@harshil-2096 harshil-2096 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Closes #406 406

Summary

image [Screencast from 2026-09-17 15-48-31.webm](https://github.com/user-attachments/assets/a7ff3bf9-ce2f-4cc1-b8c3-8205cb681807)

Closes #

Changes

How was this tested?

Checklist

  • I have read the contributing guidelines
  • pnpm build, pnpm test, pnpm typecheck, pnpm lint:ci, and pnpm format:check pass locally
  • Tests added/updated where it makes sense
  • No hand-edits to generated code (packages/trueforge-sdk, python/trueforge_sdk, .github/fern/openapi/openapi.json, docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge
  • Docs / .env.example updated if configuration or behavior changed

Note

Medium Risk
Changes session metadata persistence and permission-gated list actions, but reuses existing session update APIs rather than new auth paths.

Overview
Adds inline rename for persisted chat sessions in the thread list when the backend exposes optional renameSession.

The session overflow menu now includes Rename alongside Delete (desktop dropdown and mobile bottom sheet). Rename is shown only for remote sessions when server.renameSession exists; it is disabled without session MANAGE permission, same pattern as delete. Editing uses an inline title field (Enter/blur to save, Escape to cancel, 50-character max aligned with TrueForge), trims whitespace, skips no-op saves, and surfaces failures via the toaster.

TrueForge harness adapter implements renameSession and forwards title on updateSession via PATCH /sessions/{id}. Server contract docs document the optional method and clarify that TrueFoundry Gateway should omit it.

Workspace pins @truefoundry/assistant-ui-runtime to 0.1.42 for thread-list rename wiring. Tests cover row UI, container flows, permissions, and harness PATCH behavior.

Reviewed by Cursor Bugbot for commit 596974d. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot

changeset-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 596974d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@truefoundry/trueforge-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread packages/trueforge-ui/src/containers/ThreadListContainer.tsx
Comment thread .changeset/session-rename-ui.md

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread packages/trueforge-ui/src/containers/ThreadListContainer.tsx

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 596974d. Configure here.

Comment thread packages/trueforge-ui/src/containers/ThreadListContainer.tsx
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.

Feature Request: Add option to rename chats

1 participant