Skip to content

feat: add an interactive terminal review workspace - #1739

Closed
Qiyuanqiii wants to merge 3 commits into
alibaba:mainfrom
Qiyuanqiii:codex/standalone-interactive-tui
Closed

Qiyuanqiii wants to merge 3 commits into
alibaba:mainfrom
Qiyuanqiii:codex/standalone-interactive-tui

Conversation

@Qiyuanqiii

@Qiyuanqiii Qiyuanqiii commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add ocr tui, an interactive terminal workspace for selecting changes, previewing files, running reviews, following progress, reading findings, and reopening saved sessions.

  • Command palette, scope/background controls, and provider/model configuration.
  • Review subprocess isolation so progress output does not corrupt the terminal renderer. Esc requests cancellation and waits for saved results, including cancellation during range input resolution.
  • A dark green pixel wordmark, responsive layout, and persistent interface settings for English, Simplified Chinese, Japanese, Korean, and Russian.
  • /login reuses upstream's ChatGPT browser sign-in command and directs first-time users to /provider for configuration. Login outcomes preserve the existing provider/model and review selection.
ocr tui --repo /path/to/repository
ocr tui --from main --to feature

This PR builds directly on upstream main and contains the TUI only. Native plugins and the marketplace are submitted in #1738; their UI integration can follow after both changes land. The existing integrated fork remains available separately.

Type of Change

  • New feature (non-breaking change that adds functionality)
  • Documentation update

How Has This Been Tested?

On Windows with Go 1.26.9:

  • make license-add and make check passed.
  • make test PACKAGES="./cmd/opencodereview ./internal/agent" passed with the Makefile's race detector and LC_ALL=C.
  • make coverage passed: 90.3% total coverage.
  • Full OCR Delegate review covered all 17 selected production/configuration files, with excluded tests and documentation inspected as context. An independent GPT-6.1 Sol xhigh review also checked the subsequent result-navigation fix, with no remaining findings in that increment.
  • A command-flow regression runs review, selects the second saved session, returns with /results, and opens the retained finding at terminal heights of 10 and 40 rows. make check and make test PACKAGES="./cmd/opencodereview -run TestTUI" passed after the navigation fix.
  • Built and opened the standalone executable in a real Windows terminal. Verified the home screen, five-language settings, switching to Simplified Chinese, file preview for the TUI commit (17 reviewable files), the /login palette entry, and clean exit.

Unit tests cover login command arguments and success/error return handling without performing real account authorization. The standalone smoke test did not call a paid model; earlier full review screenshots and usage came from the integrated prototype.

Prototype screenshots: home and language settings

These user-provided screenshots are from the integrated fork. This standalone patch retains the workspace and language settings; the plugin shortcut visible on the prototype home screen belongs to the separate plugin integration.

Open Code Review prototype home screen

Five interface languages in settings

Checklist

  • Code passes the project's formatting, license, English-source, and vet checks.
  • Relevant tests and the full coverage target pass locally.
  • Workspace documentation is included.
  • Contributor self-review of all generated code and text is complete.
  • CLA status is confirmed.

AI Assistance

OpenAI Codex was used for implementation, tests, and this draft, with GPT-6 and delegated GPT-6.1 Sol agents at xhigh. OCR Delegate supplied deterministic file selection and review rules; Codex performed the review. Commits have no AI attribution trailers. This PR remains a draft while the contributor completes self-review and confirms the contribution checklist.

Related Issues

Closes #1737.
Separate plugin/marketplace contribution: #1736 and #1738.

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

🔍 OpenCodeReview found 6 issue(s) in this PR.

  • ✅ Successfully posted inline: 6 comment(s)

Comment thread cmd/opencodereview/tui_model.go Resolved
Comment thread cmd/opencodereview/tui_model.go Resolved
Comment thread cmd/opencodereview/tui_model.go Resolved
Comment thread cmd/opencodereview/tui_runner.go Resolved
Comment thread cmd/opencodereview/tui_runner.go Resolved
Comment thread internal/agent/agent.go Resolved
@Qiyuanqiii

Copy link
Copy Markdown
Contributor Author

暂不在计划内,close

@Qiyuanqiii Qiyuanqiii closed this Nov 10, 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.

feat: interactive terminal workspace for local reviews(TUI)

1 participant