Repository navigation
fix(desktop): a source of one agent is one card on the Overview, and leaves it with its conversation - #118
Open
cmd8 wants to merge 3 commits into
Open
fix(desktop): a source of one agent is one card on the Overview, and leaves it with its conversation#118cmd8 wants to merge 3 commits into
cmd8 wants to merge 3 commits into
Conversation
…nd a source of one agent is one card there, not two
# Conflicts: # desktop/src/View.tsx # desktop/src/view-world.ts # desktop/test/view-world.test.ts
This branch has not been deployed
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.
nextnow drops a removed event source from the Overview (7ea5825). Two cases are still left over, and this PR covers them.What changes
desktop/src/view-world.ts): such a source's events name it with its agent (source/pr-102@main/...), while the list of sources gives its bare name (pr-102). The Overview made a card from each, so the source showed twice. The card from its events was never in the list, so it stayed after the source was removed.World.setSourcesnow keys each card by the source's topic, the same key its events use, so the source and its events make one card and it goes when the source goes.desktop/src/View.tsx): removing a conversation also removes the sources that were set up for it. Onpine/conversationthe Overview now asks for the sources again, as it already does after an agent's setup tools.Tests
desktop/test/view-world.test.ts: a source of one agent and its events are one card, and that card leaves the view once the source is no longer listed. Upstream's test for a removed source stays beside it.npm run checkindesktop/passes.npm run desktop:test, 392 tests pass. The 16 failures are all in the Setup Pine tests, and they fail the same way onnextwithout this PR.Screenshots
The app on a throwaway home. The main agent gets a folder source of its own and is subscribed to it. Then a file lands in the folder, and the source reports it. The red boxes mark what to look at in each step.
Before (
next): the event makes a second card,scans@main, with no listeners. Thescanscard the source really is shows nothing of it.After (this PR): the source and its event are one card,
scans.