Skip to content

Fix terminal startup command echo race#2527

Open
Jinwoo-H wants to merge 1 commit into
mainfrom
jinwoo0825/fix-orca-cli-terminal-command
Open

Fix terminal startup command echo race#2527
Jinwoo-H wants to merge 1 commit into
mainfrom
jinwoo0825/fix-orca-cli-terminal-command

Conversation

@Jinwoo-H
Copy link
Copy Markdown
Contributor

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

Summary

  • increase the post-shell-ready startup command delay for daemon and local PTY paths
  • add a regression guard for the early prompt echo race window
  • keep timing tests tied to exported constants instead of duplicated literals

Repro

Before the patch, running:

orca terminal create --command "echo ORCA_ECHO_REPRO"

executed the command correctly, but rendered the typed line with the first character duplicated at the prompt, e.g. eecho ORCA_ECHO_REPRO. The same race made claude appear as cclaude/tclaude when launched through orca terminal create --command.

Verification

  • pnpm exec vitest run src/main/daemon/post-ready-flush-gate.test.ts src/main/daemon/session.test.ts src/main/providers/local-pty-shell-ready.test.ts
  • pnpm run typecheck:node

Made with Orca 🐋

Co-authored-by: Orca <help@stably.ai>
@Jinwoo-H Jinwoo-H force-pushed the jinwoo0825/fix-orca-cli-terminal-command branch from e3cefdb to e584264 Compare May 21, 2026 18:24
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