Skip to content

Rebuild the terminal workspace and retire the browser UI - #329

Open
EvanProgramming wants to merge 1 commit into
mainfrom
codex/terminal-rebuild
Open

EvanProgramming wants to merge 1 commit into
mainfrom
codex/terminal-rebuild

Conversation

@EvanProgramming

Copy link
Copy Markdown
Owner

The terminal now gives the conversation the full width. Commands, chats, project instructions, task progress, and usage open on demand. First-run setup guides users through provider, model, and permissions. Queued follow-ups can be edited or withdrawn in their original chat.

Fixes a scrolling bug where fragmented mouse reports appeared as text in the draft. The transcript preserves the reader’s position as replies arrive and when the terminal resizes.

Removes the browser chat, PWA, and cookie login. Authenticated REST, SSE, webhooks, and MCP remain available through kyrozen-api. The existing kyrozen-web command remains a compatibility alias.

Rebuilt terminal with a conversation, collapsed tool results, and message editor

Validation

  • Python suite completed with 1,921 tests, 57 skipped, and zero failures. Go tests and focused race checks passed.
  • macOS pseudo-terminal tests covered fragmented wheel reports, Unicode paste, queued follow-ups, approvals, resize, and terminal restoration. Physical trackpad behavior and live provider calls remain unverified.
  • Package installation, Docker persistence, API acceptance, and documentation checks passed.

@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3afe1c6b-37ef-4bcb-86d0-103030a02797
  • 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

@ghfind-review ghfind-review Bot added the review: high ghfind author score; see https://ghfind.com label Dec 4, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T15:51:09.845528Z eaad0fc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eaad0fca77

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tui/workspace_ui.go
}
}
}
m.send("command", map[string]any{"name": "/" + name})

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Block history rollback until the active turn finishes

While a turn is running, /rollback <number> confirm now reaches the backend because slash commands bypass the busy check and runAction only guards selected operations. The rollback handler in openkyrozen/interfaces/tui/commands.py calls restore_history without checking _busy, and openkyrozen/workspace/history_service.py restores workspace files and rebinds conversation state without cancelling the worker. Consequently, an executing agent can continue writing into the restored workspace or persist results against the wrong conversation state. Reject rollback while a turn is active, or cancel and await the worker before restoring.

Useful? React with 👍 / 👎.

Comment thread tui/input.go
Comment on lines +699 to +700
if m.busy || m.activeTurn != "" || len(state.queue) > 0 {
state.queue = append(state.queue, text)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve attachments intended for queued follow-ups

If a user runs /attach file while the current provider call is in progress and then queues a question about that file, the attachment is silently lost. /attach now runs during active turns, but the queue stores only the question text; meanwhile, the existing worker unconditionally clears the shared _staged_attachments list on success (openkyrozen/interfaces/tui/turns.py:317), including files staged after its prompt was constructed. The queued question therefore executes without the attachment context despite the successful staging confirmation. Associate staged attachments with their queued turn, or prevent staging while another turn owns the shared list.

Useful? React with 👍 / 👎.

Comment thread tui/dialogs.go
// description and actions in the sheet even when the terminal is short.
width := maxInt(1, m.width-2)
prompt := ansiWrap(lines[1], width)
prompt = limitRows(prompt, maxInt(1, m.height/4))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Allow users to read the full clarification prompt

On a 24-row terminal, a clarification prompt containing more than six physical lines now has its remaining text discarded, even when the complete prompt and choices would fit on screen. The previous dialog rendered the entire prompt, whereas this fixed quarter-screen cap silently removes potentially essential qualifications. questionKey only changes the selected choice, and mouse-wheel handling on screenQuestion delegates to those selection keys, so there is no way to scroll the omitted prompt text within the dialog before answering. Preserve the complete prompt when space permits and provide scrolling or expansion when it does not fit.

Useful? React with 👍 / 👎.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review: high ghfind author score; see https://ghfind.com

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant