Skip to content

feat(pi-naming): include each turn's last assistant output in session naming - #256

Merged
maplezzk merged 1 commit into
mainfrom
feat/pi-naming-turns
Nov 14, 2026
Merged

maplezzk merged 1 commit into
mainfrom
feat/pi-naming-turns

Conversation

@maplezzk

Copy link
Copy Markdown
Owner

Summary

  • Add getSessionNamingTurns and getCurrentSessionNamingTurns to extract each turn's user message and last non-empty assistant text output from the active session branch (ctx.sessionManager.getBranch()).
  • Update buildSessionNamePrompt, requestSessionName, requestSessionNameWithTimeout, and registerNaming so manual /rename sends <conversation-turns> containing all user messages and each turn's final assistant output.
  • Update zh-CN and en-US prompt copy in locales/index.json.
  • Add unit tests in tests/session-name.test.ts and tests/rename.test.ts.

Verification

  • npm --prefix packages/pi-naming run check (tsc --noEmit, 56/56 tests, npm pack --dry-run)

@maplezzk
maplezzk merged commit 0e0ab83 into main Nov 14, 2026
1 check 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