Skip to content

feat(chat): show session continuation instructions on exit - #757

Merged
edenreich merged 5 commits into
mainfrom
feat/chat-exit-session-continuation
Jul 6, 2026
Merged

edenreich merged 5 commits into
mainfrom
feat/chat-exit-session-continuation

Conversation

@inference-gateway-maintainer

@inference-gateway-maintainer inference-gateway-maintainer Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #756

Summary

The agent's original PR description was incomplete, so this summary was generated from the commit history.

Changes

  • feat(chat): show session continuation instructions on exit
Files changed
cmd/chat.go          |   9 +++-
 cmd/chat_test.go     | 140 +++++++++++++++++++++++++++++++++++++++++++++++++++
 internal/app/chat.go |   6 +++
 3 files changed, 154 insertions(+), 1 deletion(-)

Comment thread cmd/chat_test.go Resolved
Co-authored-by: Eden Reich <[email protected]>
@edenreich

Copy link
Copy Markdown
Contributor

@infer Please use generated mocks. memorise it, the project has a convention for mocks - no hand written mocks.

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor Author

Model: ollama_cloud/deepseek-v4-flash · View Job

Todos

  • Understand the current state of PR feat(chat): show session continuation instructions on exit #757 and the changes made
  • Find how the project generates mocks (counterfeiter) - found in Taskfile.yml
  • Replace hand-written mockConversationRepo with generated FakeConversationRepository in cmd/chat_test.go
  • Verify the changes compile and tests pass
  • Commit and push changes

Pull Request

#757

✅ Infer Result: Success

All done! Here's a summary of what was changed:

Changes made

cmd/chat_test.go — Replaced the hand-written mockConversationRepo struct (85 lines of boilerplate implementing all 18 methods of domain.ConversationRepository) with the counterfeiter-generated FakeConversationRepository from tests/mocks/domain/.

What was removed:

  • The entire mockConversationRepo struct and all its method implementations (~85 lines)
  • The domain and sdk imports (no longer needed)

What was added:

  • Import of github.com/inference-gateway/cli/tests/mocks/domain (aliased as mocks)
  • Two new test cases that exercise the generated mock directly:
    • GetCurrentConversationID returns session ID from generated mock — verifies GetCurrentConversationIDReturns() and GetCurrentConversationIDCallCount()
    • GetCurrentConversationID returns empty string from generated mock — verifies the empty-string case

Verification:

  • ✅ go build ./cmd/... — compiles cleanly
  • ✅ go test ./cmd/ -run TestChatExitMessageFormat -v — all 6 tests pass
  • ✅ Pushed to feat/chat-exit-session-continuation (commit 1a3a104)

Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 3m 14s

Tokens: 2,026,116 in · 6,832 out · 2,032,948 total (27 requests)

Tool calls: 40 total · 95% success rate

⚠️ 2 failed tool call(s)
  • Bash: exit status 128: fatal: origin/main...HEAD: no merge base
  • Bash: exit status 128: fatal: main...HEAD: no merge base

Triggered by edenreich · Infer Action

@edenreich

edenreich commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

@infer CI is failing - can you fix this?

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor Author

Model: ollama_cloud/deepseek-v4-flash · View Job

Todos

Pull Request

#757

✅ Infer Result: Success

All CI jobs passed successfully — the fix is complete.

Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 8m 46s

Tokens: 901,341 in · 4,525 out · 905,866 total (39 requests)

Tool calls: 42 total · 88% success rate

⚠️ 5 failed tool call(s)

Triggered by edenreich · Infer Action

@edenreich
edenreich marked this pull request as ready for review July 6, 2026 10:00
@edenreich
edenreich requested a review from a team as a code owner July 6, 2026 10:00
Comment thread cmd/chat_test.go Resolved
Comment thread cmd/chat_test.go Resolved
@edenreich
edenreich merged commit 8d04a3a into main Jul 6, 2026
1 check passed
@edenreich
edenreich deleted the feat/chat-exit-session-continuation branch July 6, 2026 11:16
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))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.133.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] When exiting the chat show the user a way to continue the recent session

1 participant