Use when changing REPL clear/reset/resume/surface behavior (onClearTerminal, transcriptSeq remount, Ink Static paths, Ctrl+O/Ctrl+E transitions). Enforces single-owner reset transaction and prevents black-screen/flicker/duplicate-row regressions.
Use this skill when changing REPL clear/reset/resume behavior or any transcript surface transition that can remount Static.
docs/contracts/transcript-surface-contract.mddocs/runbooks/repl-surface-debugging.mddocs/contracts/invariants.md when ownership or sequencing is unclearThese docs are canonical. If stable surface behavior changes, update them before or with code.
replaceTranscriptqueueTranscriptSurfaceReplaceresetTranscriptSurfacequeueTranscriptSurfaceResetsurfaceOpQueueRefpackages/core/src/features/repl/controller/ui/packages/core/src/features/repl/controller/session/packages/core/src/features/repl/useReplController.tspackages/core/src/screens/repl/packages/core/src/runtime/bootstrap/runLegacyCli.tsxonClearTerminalclearTerminalresetInkStaticOutputForStdouttranscriptSeq remount behavior in ReplTranscript / ExpandedReplTranscriptUse this skill whenever the change touches any of:
/resume, /clear, compact boundary transitionsonClearTerminal, clearTerminal, or resetInkStaticOutputForStdoutreplaceTranscript, queueTranscriptSurfaceReplace, resetTranscriptSurface, queueTranscriptSurfaceReset, or surfaceOpQueueRefpackages/core/src/features/repl/controller/ui/, packages/core/src/features/repl/controller/session/, packages/core/src/features/repl/useReplController.ts, packages/core/src/screens/repl/, or packages/core/src/runtime/bootstrap/runLegacyCli.tsx/resume, /clear, Ctrl+O / Ctrl+E, compact boundary, etc.).replaceTranscript / resetTranscriptSurface instead of local clear / remount sequencing.bun run test -- packages/core/src/features/repl/controller/ui/surfaceReset.test.tsbun run test -- packages/core/src/features/repl/useReplController.test.tsx -t "resume|clear|compact"bun run test -- packages/core/src/screens/repl/surfaceSmoke.test.tsxbun run type-checkbun run test:surface-screen-modelreplInstance.clear() and ANSI clear in legacy paths unless ownership is explicit and serialized.docs/pitfalls/summary.md sections covering /clear, compact + Ctrl+O, and resume black-screen regressionsdocs/pitfalls/repl-transcript-surface-handoff-pitfall.mddocs/pitfalls/repl-transcript-static-rootcause.md