Skip to content

fix(terminal): import the screen projection from its new daemon module - #47153

Merged
brennanb2025 merged 1 commit into
mainfrom
fix-prompt-guards-projection-import
Nov 22, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
fix-prompt-guards-projection-import

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Problem

main fails typecheck. #46516 moved orca-runtime-terminal-projection.ts to src/main/daemon/emulation/terminal-screen-projection.ts. #47087 merged about the same time and added an import from the old path in terminal-agent-prompt-guards.ts.

Fix

Point that import at the new module. The functions it uses (projectTerminalVisibleLines, restoreProjectedComposerDraft) are exported there unchanged.

Performance

None, because this only changes an import path.

Verification

pnpm tc:node is clean, and the terminal input tests pass.

Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 0

Jinwoo-H added a commit that referenced this pull request Nov 22, 2026
Keeps main's start evidence alongside the background wait in rest facts, takes main's prompt-guards import from the moved projection module (also #47153), and applies the review's two nits: the explicit chat flag on backgroundWaitShown and cancelling a wait's timer once its chat finish is recorded.
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The terminal prompt guards now import projection helpers from daemon/emulation/terminal-screen-projection instead of view/orca-runtime-terminal-projection. No runtime logic changes are shown.

Merge Risk: Minimal · up to 4c7a6

This fixes an import that pointed to a moved module. No behavior change is expected, and merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: the terminal screen projection import moves to its new daemon module. The raw summary confirms the only change is an import path in terminal-agent-prompt-guards.ts. The con…
Description check Passed The description covers the problem (main fails typecheck after two merges collided), the fix (point the import at the new module), a performance statement, and verification (pnpm tc:node clean, termin…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: the terminal screen projection import moves to its new daemon module. The raw summary confirms the only change is an import path in terminal-agent-prompt-guards.ts. The conventional-commit prefix and length are acceptable, and the title is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description covers the problem (main fails typecheck after two merges collided), the fix (point the import at the new module), a performance statement, and verification (pnpm tc:node clean, terminal input tests pass). It omits the template's ELI5, What Changed, Why, Linked Issue, Visual Proof, Risk, and AI Disclosure sections. The Linked Issue section is required for outside contributors and is absent. The author may be a maintainer, so the check still passes as mostly complete, but the missing sections should be added or confirmed as not applicable.

Resolution

Consider adding the template sections the description omits: ELI5, What Changed, Why, Linked Issue (or a note that the author is a maintainer), Visual Proof (N/A with reason, since this is not a UI change), Risk with a Level, and the Testing checklist items. The Review, Agent skill upstream boundary, and AI Disclosure sections can be marked N/A or left for the maintainer.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 446e87ab-626a-422a-a8b6-d63be30f50f7
Commits

Reviewing files that changed from the base of the PR and between c844782 and 4c7a6ab.

Files selected for processing: 1

  • src/main/runtime/terminal/input/terminal-agent-prompt-guards.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@brennanb2025
brennanb2025 merged commit ba473af into main Nov 22, 2026
32 checks passed
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.

2 participants