Skip to content

Fix CLI-launched agent terminal viewport - #2561

Merged
Jinwoo-H merged 1 commit into
mainfrom
jinwoo0825/fix-cli-terminal-viewport
May 21, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
jinwoo0825/fix-cli-terminal-viewport

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented May 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • keep CLI-created interactive Codex/Claude terminals backgrounded unless --focus is explicit
  • route local interactive agent commands through the renderer-backed path without activation
  • keep background renderer-backed terminal mounts measurable briefly so xterm fits against real app geometry instead of 80x24
  • update the repo-local Orca CLI skill to document the non-focus-stealing behavior

Repro / validation

  • Reproduced the original behavior: non-focused CLI-created agent terminal started at 24 80, while --focus started at full app geometry.
  • Verified the final built CLI against an isolated built Electron app: a non-focused claude shim reported hidden-stty=67 192; the existing active terminal remained selected (terminal read --json without a handle still returned the seed terminal).

Tests

  • pnpm test src/cli/codex-command-classification.test.ts src/cli/index.test.ts src/renderer/src/components/terminal/background-terminal-worktree-mount.test.ts
  • pnpm run typecheck
  • pnpm run lint
  • pnpm run build:electron-vite
  • pnpm run build:cli

@Jinwoo-H
Jinwoo-H force-pushed the jinwoo0825/fix-cli-terminal-viewport branch from d7284e8 to 39d3f85 Compare May 21, 2026 22:29
@Jinwoo-H
Jinwoo-H merged commit a75a822 into main May 21, 2026
6 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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.

1 participant