Skip to content

Conversation

@JeanMertz
Copy link
Collaborator

The jp query command now persists conversation events to disk as they are received during the LLM stream. Previously, persistence occurred only after the entire command completed, which could lead to data loss if the process was interrupted during a long-running interaction or complex tool use.

The Workspace now exposes a persist_active_conversation method to allow manual triggering of the persistence logic. Within the query command, the handle_stream function tracks new events in the current Thread and updates the workspace state before persisting, ensuring the local history remains up-to-date even during recursive tool calls.

The `jp query` command now persists conversation events to disk as they
are received during the LLM stream. Previously, persistence occurred
only after the entire command completed, which could lead to data loss
if the process was interrupted during a long-running interaction or
complex tool use.

The `Workspace` now exposes a `persist_active_conversation` method to
allow manual triggering of the persistence logic. Within the `query`
command, the `handle_stream` function tracks new events in the current
`Thread` and updates the workspace state before persisting, ensuring
the local history remains up-to-date even during recursive tool calls.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
…treams

Signed-off-by: Jean Mertz <git@jeanmertz.com>
…treams

Signed-off-by: Jean Mertz <git@jeanmertz.com>
…treams

Signed-off-by: Jean Mertz <git@jeanmertz.com>
…treams

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit 1158c09 into main Jan 16, 2026
12 checks passed
@JeanMertz JeanMertz deleted the improve-tool-inquery44 branch January 16, 2026 12:57
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.

2 participants