Repository navigation
Sonny: each store notes its own last lead, and a gone lead's tasks stay off the first lead - #376
Merged
Merged
Conversation
…ay off the first lead The note of the lead last written to in a folder is now keyed by the store's lineage as well as the folder, as the multiplexer places are, so two stores under one home no longer move each other's pick. A lead deleted while its tasks live on no longer hands them to the folder's first lead: on a reload, a bot whose maker is named as another lead of the folder is theirs, whether or not that lead is still there. Fixes #368. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH7ReQfFZ1hChr3jXE
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Merged
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.
Fixes #368, the two leftovers from #365's review.
What changes
~/.agent/sonny/last-lead/<key>is now keyed by the store's lineage (ready'sstore) plus the folder. The multiplexer place records already key their files by socket plus project the same way. Before this, two stores under one HOME shared the note, so writing to a lead in store A changed which lead store B opened. With no lineage the key is the folder alone, as before. Codex'sresume --lastand Claude Code's--continuescope "last" to the place it was used, and this does the same.Lookout::rootsrebuilttheirsonly from leads still in the records. So onceshop.lead.billingwas deleted, its surviving taskshop.invoicesfell under the first lead'sshop.*glob, and its news reachedshop.lead. Now a bot whosecreated_bynames another lead of the folder is that lead's, whether or not the lead still exists. That holds on reload and for bots created later.Tests
project::tests::each_store_notes_its_own_last_lead_in_a_folderlookout::tests::a_gone_leads_tasks_stay_off_the_first_lead: a gone lead's task, that task's own task, and a later task are all kept off the first lead, while a strayshop.*bot is still heard.cargo test -p sonnyandcargo clippy --workspace --all-targets -D warningspass locally.No visible change, so no screenshots.