Skip to content

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
pmndre:nextfrom
cmd8:fix/view-gone-sources
Open

cmd8 wants to merge 3 commits into
pmndre:nextfrom
cmd8:fix/view-gone-sources

Conversation

@cmd8

@cmd8 cmd8 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

next now drops a removed event source from the Overview (7ea5825). Two cases are still left over, and this PR covers them.

What changes

  • A source of one agent is one card (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.setSources now 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.
  • Removing a conversation updates the Overview (desktop/src/View.tsx): removing a conversation also removes the sources that were set up for it. On pine/conversation the 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 check in desktop/ passes.
  • In npm run desktop:test, 392 tests pass. The 16 failures are all in the Setup Pine tests, and they fail the same way on next without 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. The scans card the source really is shows nothing of it.

Before: an event of an agent's own source makes a second card

After (this PR): the source and its event are one card, scans.

After: the source and its events are one card

cmd8 added 3 commits November 26, 2026 22:55
…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
@cmd8 cmd8 changed the title fix(desktop): an event source that was removed leaves the Overview fix(desktop): a source of one agent is one card on the Overview, and leaves it with its conversation Nov 26, 2026

This branch has not been deployed

No deployments
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.

1 participant