Repository navigation
fix(statusline): keep the status line up across /clear and harden against dropouts - #242
Merged
Merged
Conversation
…inst dropouts session.start never fires on /clear, so the new session id had no line file until the next poll and the stub printed nothing. Other paths could also blank the line or drop segments. - carry the last line to the new session id within 500ms of a /clear - serialize line writes (overlapping publishes could leave an empty file) - load session.start inputs independently so one failure cannot skip the publish or the pollers; render a model-only line before the first usage - retry user@host until it lands (throttled), reject empty id/hostname output - keep the last git value when status fails in a known repo (and use --no-optional-locks so the poll never contends with the user's git) - keep inbox flags when the state file is unreadable rather than absent - carry rate-limit windows forward until their reset time - bump statusline to 3.5.1 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018KC1pVGuHWxKo5CbsdGfm8
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.
Summary
The status line went blank after
/clearor/new, and occasionally dropped segments (user@host, branch, inbox flags). Per the mod API,session.startnever fires on/clear, so nothing wrote the new session id's line file until the next poll, and the stub prints nothing without it./clear(id watcher), so the stub always finds a file..tmp, and a rename between truncate and write could leave an empty file (blank line).session.startloads are independent (allSettled): one failing read no longer skips the publish or the pollers; a model-only line renders before the first usage reading.id/hostnameoutput rejected.git statusin a known repo keeps the last value instead of dropping the branch; status now uses--no-optional-locks.Test plan
bash .github/scripts/validate-all.shpasses;claude plugin validate plugins-claude/statuslinepasses.tscis not available here, so no standalone type-check./clearthe carried-over line briefly shows the old context % and cost until the first usage update.🤖 Generated with Claude Code
https://claude.ai/code/session_018KC1pVGuHWxKo5CbsdGfm8