Repository navigation
Read the agents snapshot of newer cores - #58
Merged
Merged
Conversation
Since bots became threads in Boite, agents.snapshot sends no messages, work or deliveries, and its sessions have no scope. The island read them as before and threw on every update, so the page stopped answering: no deck, no Settings.
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.
Bots works again with a Boite whose agents are threads.
Why
Since Boite made each bot a thread (Boite #747),
agents.snapshotsends nomessages,workordeliveries, and its sessions have noscope. Bots read them as before and threw on every update (reading 'filter'onwork,reading 'kind'on a session'sscope). The page stopped answering: a click on the island, its hover and Settings from the tray did nothing.What changes
agents.snapshotread, this machine's and the other machines', goes throughreadableSnapshot(lib/group/agents.ts): a list left out reads as empty, a session without a scope as the agent's direct one.Checks
bun run check: 0 errors, 0 warnings.vitest: 77 files, 552 tests. New: a newer core's snapshot reads without breaking the island.Not in this PR
The deck's chat still reads the old conversation records, which newer cores no longer send: it shows no history there. Porting it to agent threads is a follow-up.