Repository navigation
fix(chat): add --session-id flag and fix exit message - #760
Merged
Merged
Conversation
- Add LoadConversation method to ConversationLifecycleManager interface - Implement no-op LoadConversation on InMemoryConversationRepository - Add --session-id flag to chat command, wired through StartChatSession - Fix exit message to show 'infer chat --session-id' instead of 'infer agent --session-id' - Update tests to match the corrected exit message - Generate/update counterfeiter fake for ConversationRepository Fixes the bug where the chat exit message pointed users to 'infer agent --session-id' which runs headless agent mode, not the interactive chat TUI they were using.
…with agent - Print a visible notice when --session-id cannot be loaded, adopting the requested ID for the new session (mirrors infer agent behaviour) - Warn when --session-id is passed in web or non-interactive mode instead of silently ignoring it - Make InMemoryConversationRepository.LoadConversation return an explicit error instead of claiming success - Extract chatExitMessage and test it plus flag registration and the resume path with counterfeiter fakes - Document infer chat --session-id in the README
edenreich
force-pushed
the
fix/chat-session-id-flag
branch
from
July 6, 2026 12:09
3d50e14 to
7768c3c
Compare
3 tasks
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Jul 6, 2026
## [0.133.0](v0.132.1...v0.133.0) (2026-07-06) ### 🚀 Features * add nvidia provider support ([#753](#753)) ([e9ea883](e9ea883)), closes [#751](#751) * **agent:** cap rendered skills list and harden system prompt injection ([#761](#761)) ([cb0f36e](cb0f36e)) * scope memory entries by project ([#759](#759)) ([cabda08](cabda08)), references [#758](#758) * **chat:** show session continuation instructions on exit ([#757](#757)) ([8d04a3a](8d04a3a)), closes [#756](#756) ### 🐛 Bug Fixes * **chat:** add --session-id flag and fix exit message ([#760](#760)) ([a2202ba](a2202ba)) * **ci:** release notes are not being generated ([32b7acf](32b7acf)) * replace /compact with /new when plan is accepted ([#755](#755)) ([30304ed](30304ed)), closes [#754](#754) ### ♻️ Code Refactoring * **agent:** remove comments about skill description capping ([e50aa30](e50aa30)) ### 🧹 Maintenance * **deps:** bump claude-code-action v1.0.161 -> v1.0.165 ([#752](#752)) ([44d1985](44d1985)) * **deps:** update flox packages ([8a35d5e](8a35d5e))
Contributor
|
🎉 This PR is included in version 0.133.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Commit 8d04a3a added a session continuation message on chat exit, but the message incorrectly pointed users to
infer agent --session-id(headless agent mode) instead ofinfer chat --session-id(interactive chat TUI). Thechatcommand also lacked a--session-idflag entirely.This PR adds the
--session-idflag to the chat command and fixes the exit message.Changes
internal/domain/interfaces.go— AddedLoadConversation(ctx, conversationID)to theConversationLifecycleManagerinterfaceinternal/services/conversation.go— Added no-opLoadConversationonInMemoryConversationRepository(safe sincePersistentConversationRepositoryalready overrides it)cmd/chat.go— Added--session-idflag, wired it throughStartChatSession, and fixed the exit message frominfer agent --session-idtoinfer chat --session-idcmd/chat_test.go— Updated test expectations to match the corrected messageinternal/app/chat.go— AddedUpdateHistoryEventemission inInit()to display loaded messages immediatelytests/mocks/domain/fake_conversation_repository.go— Regenerated counterfeiter fakes for the updated interfaceTesting
go test ./cmd/ -run TestChat)go build ./cmd/chat.go)go vet ./...reports no interface errors