Repository navigation
feat: submit a lich notification the way Claude Code delivers a background agent - #40
Merged
Merged
Conversation
…round agent's completion
A prompt command carrying a notification {status, summary} is submitted
as the user in the task-notification shape: Claude Code shows the
summary as one dim line and the model reads the text as the result.
Status and summary are XML-escaped (Claude Code decodes them for the
line); the text is not, since the model reads it byte for byte.
Fixtures pinned at lich 669d38a5, which defines the field.
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.
Client side of omartelo/lich feat/report-as-task-notification: a
promptcommand withnotificationis submitted as<task-notification><status/><summary/><result/></task-notification>withasUser: true, which Claude Code 2.1.289 draws as its own one-line background completion (● lich session "X" finished) while the model reads the full report and the turn wakes. The mod escapes& < >in status and summary (the UI decodes them in the dim line); the result stays raw, since escaped the model read&&literally. Without the field, today's framed submit.Release as 0.16.0 once lich ships the contract (lich-ref then moves to that tag; pinned to lich 669d38a5 now). Tests: node 291/291 (the new test fails on the old mod),
claude plugin test .21/21, validate ok.