Skip to content

Fix terminal layout listing and copyable handles - #5845

Merged
Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/issue-5443-investigate
Jun 19, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/issue-5443-investigate

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Jun 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add visual terminal layout metadata to terminal.list for split workspace sections and nested terminal panes
  • format that visual tree in orca terminal list with actionable term_xxx handles
  • add a context-menu action to copy the runtime terminal ID for a pane

Closes #5443

Verification

  • pnpm exec vitest run --config config/vitest.config.ts src/cli/format.test.ts src/main/runtime/runtime-rpc.test.ts src/renderer/src/components/terminal-pane/terminal-handle-copy.test.ts
  • pnpm exec oxlint src/cli/format.test.ts src/cli/terminal-format.ts src/main/runtime/orca-runtime.ts src/main/runtime/rpc/methods/terminal.ts src/main/runtime/runtime-rpc.test.ts src/renderer/src/components/terminal-pane/TerminalContextMenu.tsx src/renderer/src/components/terminal-pane/TerminalPane.tsx src/renderer/src/components/terminal-pane/use-terminal-pane-context-menu.ts src/renderer/src/components/terminal-pane/terminal-handle-copy.ts src/renderer/src/components/terminal-pane/terminal-handle-copy.test.ts src/shared/runtime-types.ts
  • pnpm run typecheck

Made with Orca 🐋


Open in Stage

@ghost

ghost commented Jun 19, 2026

Copy link
Copy Markdown

Ready to review this PR? Stage has broken it down into 5 individual chapters for you:

Title
1 Define terminal layout and resolution types
2 Implement terminal layout construction in runtime
3 Expose terminal resolution via RPC
4 Format visual terminal layouts in CLI
5 Add Copy Terminal ID to UI context menu
Open in Stage

Chapters generated by Stage for commit df9e22c on Jun 19, 2026 10:30pm UTC.

@Jinwoo-H
Jinwoo-H merged commit 3afed38 into main Jun 19, 2026
7 checks passed
@Jinwoo-H
Jinwoo-H deleted the Jinwoo-H/issue-5443-investigate branch June 19, 2026 22:42
@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

This PR adds terminal visual layout support across the stack. Shared types define a tree of visual layout nodes (terminal, pane-split, tab, group) that represent how panes are arranged. The runtime listTerminals method now computes and returns these layout trees derived from session snapshot topology. A new resolveTerminalPane(paneKey) runtime method and terminal.resolvePane RPC method allow resolving a pane key to its terminal handle, tab, leaf, and PTY identifiers. The CLI formatTerminalList function renders visual layouts as a printable section. In the renderer, a new copyTerminalHandleForPane helper calls terminal.resolvePane and writes the handle to the clipboard, wired into the terminal pane context menu as a "Copy Terminal ID" action.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is incomplete. While it contains a summary and verification steps, it lacks required sections including Screenshots, Testing checklist completion, AI Review Report, Security Audit, and Notes. Add missing required sections: Screenshots (or confirm no visual change), complete all Testing checklist items, provide AI Review Report with cross-platform compatibility checks, add Security Audit summary, and include relevant Notes about platform-specific behavior.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main changes: fixing terminal layout listing and adding copyable handles.
Linked Issues check ✅ Passed The PR implementation addresses both core objectives from issue #5443: adding visual terminal layout metadata to terminal.list with nested pane hierarchy, and implementing copy terminal ID functionality with term_xxx handles.
Out of Scope Changes check ✅ Passed All changes are scoped to the stated objectives: visual layout types, formatting logic, RPC methods, context menu integration, and copy functionality for terminal handles.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

[Feature]: Terminal IDs and Pane Nesting IDs on Orca CLI

1 participant