Add session resume (--continue), a conversation export/import API, and date grounding#66
Merged
Merged
Conversation
…grounding - AIService gains ExportHistoryJson/TryRestoreHistoryJson: full-fidelity conversation serialization (function calls included) for hosts that persist sessions - New --continue / -c flag reloads the current folder's most recent conversation at startup; sessions save automatically at every turn end under ~/.mandocode/sessions - /clear also deletes the stored session - System prompt now carries the current date, so models stop misreading current events dated after their training cutoff as fabricated future content - Launch profile added for debugging with --continue
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.
Summary
MandoCode can now remember. This release adds session resume to the CLI — close MandoCode, come back later, run
mandocode --continue, and the conversation picks up exactly where it left off. It also fixes a class of confusion where models treated real current events as fictional because they didn't know today's date.What's new
Session resume (
--continue/-c)~/.mandocode/sessions/. Nothing to configure and no action to remember — saving is continuous, so even a crash loses nothing.--continue(or-c) restores the most recent conversation for the current folder, with a confirmation line showing how many messages came back. The restore is full fidelity: the model genuinely remembers what it read, said, and did — including the tools it ran — rather than receiving a summary./cleardeletes the stored session along with the live one — cleared means cleared.Conversation export/import API
--continue(ExportHistoryJson/TryRestoreHistoryJson). MandoCode.Desktop uses the same API for its session restore and its "keep memory across a model switch" feature, so both applications share one tested mechanism.Date grounding
Why it matters
Losing the whole conversation every time the terminal closes was the CLI's biggest day-to-day friction, and the date gap quietly undermined trust in web search results. Both fixes make long-running work with MandoCode feel continuous and grounded.
Scope and risk
--continue, beyond the dated system prompt.