Repository navigation
feat: count running lich workers in the status line and stop them with TaskStop - #35
Merged
Merged
Conversation
…p them with TaskStop A subagent the mod runs as a lich session now behaves like a native background agent in two more ways. While any runs, the status line shows "lich: N workers", read every 5 seconds from `lich sessions --json`: a worker listed with a done turn, or no longer listed (lich closes one in the asking checkout once it reported), is finished. And TaskStop on a worker's agentId, which Claude Code 2.1.289 measured is how a background agent is stopped (Esc leaves it running), is taken by the mod: a worker in the asking checkout is closed with `lich close`, an isolated one has its turn stopped with `lich control <name> abort`, and the result is TaskStop's own shape. The test harness chains several hooks on one event, as the engine does, now that the module registers two tool.call hooks.
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.
Parity with Claude Code's native background subagents (measured on 2.1.289):
$.ui.statusshowslich: N workers(Claude Code prefixes the plugin name), like the native "N agents". It pollslich sessions --jsonevery 5 s only while any worker runs.lich close), an isolated one has its turn aborted (lich control … abort) and keeps its card and worktree. Any other id goes to Claude Code.Pairs with omartelo/lich feat/subagent-polish (auto-close). Tests: node 278/278,
claude plugin test .18/18, validate ok. Live in Claude Code 2.1.289 against a fake lich.