Skip to content

feat(editor): native working rule — border-embedded Working label while streaming - #7

Merged
rz1989s merged 2 commits into
mainfrom
feat/working-rule
Sep 6, 2026
Merged

feat(editor): native working rule — border-embedded Working label while streaming#7
rz1989s merged 2 commits into
mainfrom
feat/working-rule

Conversation

@rz1989s

@rz1989s rz1989s commented Sep 6, 2026

Copy link
Copy Markdown
Member

Closes #6.

Cursor's setEditorComponent replaces 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.
  • Guarded: only when cursor owns the full render (wrapped === null); foreign wrapped editors are untouched. Non-border line 0 → left as-is.
  • agent_start / agent_end / agent_settled + session_shutdown drive 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.

@rz1989s
rz1989s merged commit 0bdb0dd into main Sep 6, 2026
2 checks passed
@rz1989s
rz1989s deleted the feat/working-rule branch September 6, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Streaming label lost: custom editor drops pi's native '── ⠸ Working ──' border-embedded style

1 participant