An opened conversation's block names another daemon's pane as its holder #77

Closed
opened 2026-10-02 22:01:27 +00:00 by jhgaylor · 1 comment
Owner

From: #72 (M33).

An opened conversation's block says where it's open (import.held.place) from the process's systemd scope. A scope like illogical-pane-76-….scope can belong to another illogical daemon on the same machine (a dev or test daemon, or the daily one seen from a dev one), and the block then says "open in pane %76" for a pane this daemon doesn't have.

GET /api/conversations already drops pane and block ids that aren't this daemon's (list_conversations in crates/daemon/src/api.rs). The block's own follow (refresh_import in crates/daemon/src/agent/mod.rs) doesn't: it calls Index::live_for and keeps the ids as they are. The web client hides Go to pane for a pane it doesn't know, but the status text, the TUI's footer and describe still show the wrong pane.

  • Seen: the M33 e2e run, whose test process ran inside the daily daemon's pane 76.
  • Fix: give refresh_import the daemon's pane ids (or filter where the state is built), as the list does.
  • Done when: a unit or daemon test where the holder's scope names a pane id that doesn't exist here shows "open in a terminal (pid N)".
**From:** #72 (M33). An opened conversation's block says where it's open (`import.held.place`) from the process's systemd scope. A scope like `illogical-pane-76-….scope` can belong to **another** illogical daemon on the same machine (a dev or test daemon, or the daily one seen from a dev one), and the block then says "open in pane %76" for a pane this daemon doesn't have. `GET /api/conversations` already drops pane and block ids that aren't this daemon's (`list_conversations` in `crates/daemon/src/api.rs`). The block's own follow (`refresh_import` in `crates/daemon/src/agent/mod.rs`) doesn't: it calls `Index::live_for` and keeps the ids as they are. The web client hides *Go to pane* for a pane it doesn't know, but the status text, the TUI's footer and `describe` still show the wrong pane. - **Seen:** the M33 e2e run, whose test process ran inside the daily daemon's pane 76. - **Fix:** give `refresh_import` the daemon's pane ids (or filter where the state is built), as the list does. - **Done when:** a unit or daemon test where the holder's scope names a pane id that doesn't exist here shows "open in a terminal (pid N)".
Author
Owner

Fixed in main (69d4fb4, from 5beaf87). The multiplexer shares its pane and block ids with blocks, and both the list and an opened block's follow filter through Live::ours. A scope naming another daemon's pane shows "open in a terminal (pid N)". There's a unit test for it.

Fixed in main (69d4fb4, from 5beaf87). The multiplexer shares its pane and block ids with blocks, and both the list and an opened block's follow filter through `Live::ours`. A scope naming another daemon's pane shows "open in a terminal (pid N)". There's a unit test for it.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/illogical#77
No description provided.