Repository navigation
feat(pip): give late AI quips their own window and keep limits in main - #333
Merged
Merged
Conversation
A quip that arrived late got only what was left of the local line's 12 seconds, and the line could expire under a pending request, which then cancelled a reply that had already been paid for. The local line now stays up while a request is pending (capped at 25 s), a quip that lands gets a full 12 s from arrival, and a failed request leaves the local line with the rest of its own time. The AI cooldown was enforced in both the renderer and main. The renderer copy is gone: main decides and the status line shows the reason it returns. A moment that ends before the 600 ms request delay never reaches main and consumes no attempt. Long turns may now ask for a quip; crashes, helpers joining and nudges stay local. Requests also carry a plain-language situation, so the model is not guessing what an event id like "dizzy" means. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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.



Pip plan PR 5 (AI quip lifecycle).
longTurnjoinsPIP_AI_EVENTS.crashed,delegatedand nudges stay local, and the handler test asserts they are rejected.situationnext to the event id (PIP_AI_SITUATIONS), so the model is not guessing whatdizzyorattentionmean.Docs:
src/docs/settings.md(Optional AI quips).Tests: 5 new panel lifecycle tests, plus assertions on the handler allowlist and the Codex turn input.
vitestpasses on renderer, pip, codex and pip-handlers (1054 tests), andtsc --noEmitis clean. Lint reports no new findings; the two existing sonarjs warnings in these files are unchanged.🤖 Generated with Claude Code