feat(editor): native working rule — border-embedded Working label while streaming - #7
Merged
Conversation
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.
Closes #6.
Cursor's
setEditorComponentreplaces pi's default editor — which is the component that embeds the streaming label into the top border rule (── ⠸ Working ──…). With cursor active, the label degraded to pi's separate bare loader line.This change:
CursorEditor.setStreaming(active): while streaming, line 0 (pure top border) is replaced with the native-style── ⠸ Working ──…rule — braille spinner (pi's default frames, 80ms), accent spinner + muted message, editor border color for the dashes. Timer is injectable (Scheduler DI) and always cleared on stop.setWorkingVisible(false)on session_start — pi's separate bare loader is suppressed so the label isn't duplicated.wrapped === null); foreign wrapped editors are untouched. Non-border line 0 → left as-is.agent_start/agent_end/agent_settled+session_shutdowndrive the state machine (timer hygiene on all exits).A/B evidence: without cursor
── ⠸ Working ──…(native); before this change bare⠸ Working; with this change the rule is back and animates (⠋ → ⠴across frames).Suite 141/141, typecheck clean. Real-pi smoke: CURSOR-rule-smoke pane at 140 cols.