Repository navigation
[Feature] Add session renaming functionality and improve session metadata - #814
Conversation
- Implemented a new method to rename sessions in the ACP client and updated the corresponding webview provider to handle rename requests. - Enhanced session data structure to include an `updatedAt` timestamp for better session management. - Modified the chat panel to display relative time for the last session update. - Updated session management logic to prevent auto-derived titles from overwriting user-defined titles. - Added UI elements for editing session titles in the chat panel, including input handling for renaming sessions.
|
Hey @Avtrkrb , @akramcodez , @will-lamerton do check this out its all done :-) |
|
Hey @arpan7sarkar - thanks for this, the Blocking: Please also fix: Two smaller ones:
Nice-to-haves, not blockers: Thanks :) |
…estPathInfo and crashing on fs.statSync(undefined)) - bump lastAccessedAt in saveSession() so "last used" reflects actual activity, not just create/resume time - add tests for renameSession and extMethod - reword stale comment about CLI /rename setting titleManuallySet - add maxLength=100 to rename input, sort session groups by updatedAt
…ng into tests - revert saveSession() to trust the caller's lastAccessedAt again; it was overwriting explicit values, which broke resolve-session tests that backdate a session to simulate an older one - bump lastAccessedAt only where it should count as activity: renameSession() and the autosave update path - chdir acp-agent.spec.ts and model-selector.spec.tsx into an isolated temp dir so a local agents.config.json can't leak providers into tests - add tests: saveSession trusts explicit lastAccessedAt, renameSession bumps it, autosave bumps it
… dependency in this repo, already the established pattern in 5+ other spec files (streaming-reasoning.spec.tsx etc.). Verified it passes both with and without FORCE_COLOR set.
- styled-select-input.spec.tsx: strip ANSI codes before matching output. CI sets FORCE_COLOR=1, so Ink renders real color codes and the "> " indicator regex no longer matches the start of the line - user-input.spec.tsx: add missing unmount() to 18 tests that rendered and never tore down. AVA runs a file's tests concurrently, so these piled up and starved later tests under CI's more limited CPU
|
Hey @willlamerton, added all the changes you asked for. While testing I also ran into two test bugs in this repo, unrelated to this PR, that were failing CI runs for others too. Fixed both:
Both are pre-existing on main, not caused by this PR, just happened to show up while I was testing this branch. Can you take a look? |
|
Great work @arpan7sarkar :) |
Description
Fixes #749
rename-chat.mp4
Improve session management & history UX in the VS Code extension.
Type of Change
Changeset
pnpm changeset) describing this change for the changelogDocs-only or internal chores need no changeset (or run
pnpm changeset --emptyto note that intentionally).Testing
Automated Tests
.spec.ts/tsxfilespnpm test:allcompletes successfully)Manual Testing
Checklist