Repository navigation
fix(shiso): prevent chat reset when selecting a Vault recipe - #78
Merged
Merged
Conversation
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
Fixes the demonstrated SHISO chat reset when
select_vault_recipebinds a recipe during a named global conversation.The owner-visible failure was: SHISO began executing a recipe-development task, then the chat reset and the turn never completed. The application itself stayed healthy.
Root cause
select_vault_recipecalls the App'sonSelectRecipe, which updates the selected recipe. The App then derived the SHISO context key from that recipe, changing it fromglobaltorecipe:<id>.The named
global:*conversation override no longer matched the new context, soShisoModalfell back to the unscopedglobalconversation. Its conversation-key effect aborted the in-flight turn and cleared the visible transcript.The named conversation was not deleted, but its in-flight turn was lost. Because the saved model history was empty, reopening it did not offer the existing retry path.
Correction
A global conversation now derives its context key from
shiso.source === 'global', not from the currently selected recipe. Selecting a recipe is an operation inside that conversation, not a conversation-identity change.Recipe-entered conversations remain bound to their recipe identity. Creation conversations remain bound to
create. Existing mismatch-release behavior for recipe conversations is unchanged. Conversation storage and persistence architecture are unchanged.Verified behavior
The real-App, disposable on-disk Vault regression test:
2 tbsp olive oil→3 tbsp olive oiledit to the unsaved working copy.Verified:
3 tbsp olive oil.codexNutritionis written.The original test failed against the unmodified baseline (the chat reset and the final reply never appeared) and passes after the correction.
Recipe-scoped isolation remains intact: the existing recipe A → recipe B context-release test passes. Create-scoped conversation tests also pass.
No personal Vault files were accessed or changed. All acceptance used a disposable Vault under
/tmp.Verification
H1fRepairs,H2Editing)tsc --noEmitgit diff --checkThe transport is deterministic and stubbed; this verifies the execution, conversation, evidence, and working-copy contracts, not live-model culinary quality. No paid provider calls were made.
Scope
Two files, 212 insertions and 2 deletions:
src/App.tsx— global conversation context derivation.tests/integration/shisoAgentFoundationAppOnDisk.test.tsx— named-global selection regression test and deterministic transport.No installation, native replacement, deployment, merge, or unrelated SHISO development. Not merged.