Test going to the pane (or block) that holds a conversation, under systemd #82
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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>.jsonfor 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.
Done in main (
356fbcf, from65372a0):conversations.rs::a_conversation_in_a_panes_scope_goes_to_the_pane_then_to_its_block, underDaemon::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'sheldnames it, and continuing is refused. Once it exits, the block continues the conversation and the list credits the block's own agent in itsillogical-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.