Test going to the pane (or block) that holds a conversation, under systemd #82

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

From: #72 (M33): its "Not covered".

Two behaviours have no automated test because neither test daemon (a child process, or the e2e one) runs panes in systemd scopes:

  • a conversation running in one of our panes lists as "open in pane %N", and the picker's row and the block's Go to pane go there;

  • the adapter of an agent block that has the conversation is credited to that block (illogical-agent-<id>-….scope), not to "a terminal".

  • What: a daemon test under Daemon::service() (systemd user manager, scopes): run a fake Claude Code in a pane that writes ~/.claude/sessions/<pid>.json for a seeded transcript (in $CLAUDE_CONFIG_DIR), check the list and the opened block; continue it from the block's own agent and check the list credits the block.

  • Done when: that test passes under systemd and skips (as the others do) without it.

**From:** #72 (M33): its "Not covered". Two behaviours have no automated test because neither test daemon (a child process, or the e2e one) runs panes in systemd scopes: - a conversation running in one of our panes lists as "open in pane %N", and the picker's row and the block's *Go to pane* go there; - the adapter of an agent block that has the conversation is credited to that block (`illogical-agent-<id>-….scope`), not to "a terminal". - **What:** a daemon test under `Daemon::service()` (systemd user manager, scopes): run a fake Claude Code in a pane that writes `~/.claude/sessions/<pid>.json` for a seeded transcript (in `$CLAUDE_CONFIG_DIR`), check the list and the opened block; continue it from the block's own agent and check the list credits the block. - **Done when:** that test passes under systemd and skips (as the others do) without it.
Author
Owner

Done in main (356fbcf, from 65372a0): conversations.rs::a_conversation_in_a_panes_scope_goes_to_the_pane_then_to_its_block, under Daemon::service_env. A fake Claude Code detached from its pane's processes is placed in the pane by its scope alone: the list says "open in pane %N", the block's held names it, and continuing is refused. Once it exits, the block continues the conversation and the list credits the block's own agent in its illogical-agent-<id>-… scope. It passes on geek (8 runs) and fails with the scope fallback disabled, so it really tests that path. It skips without a user manager. Still manual: clicking Go to pane in the web client.

Done in main (356fbcf, from 65372a0): `conversations.rs::a_conversation_in_a_panes_scope_goes_to_the_pane_then_to_its_block`, under `Daemon::service_env`. A fake Claude Code detached from its pane's processes is placed in the pane by its scope alone: the list says "open in pane %N", the block's `held` names it, and continuing is refused. Once it exits, the block continues the conversation and the list credits the block's own agent in its `illogical-agent-<id>-…` scope. It passes on geek (8 runs) and fails with the scope fallback disabled, so it really tests that path. It skips without a user manager. Still manual: clicking *Go to pane* in the web client.
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#82
No description provided.