Repository navigation
[3896 by GPT-6.2 Sol] Sprites: OpenCode login menu renders one character per line with raw escape codes - #3900
Conversation
Fixed #3896. OpenCode 2.4.2 emitted one glyph per line and broke ANSI sequences when its PTY reported zero columns. Sprites and Docker now set the PTY size before launching OpenCode. The dashboard preserves fragmented UTF-8 and escape sequences, redraws the menu in place, and sends the Enter key OpenCode expects. 76 server tests and 11 UI tests passed. A Chromium run with OpenCode 2.4.2 confirmed that the menu stays readable with one-byte output frames and that Up, Down, and Enter work. Live Fly and Docker verification remains pending. This environment had neither Sprites credentials nor a Docker daemon, so live credential persistence, Ready status, and the Claude, Codex, and Vibe login rechecks remain unverified. ProPR-Agent: codex/gpt-6.2-sol
|
Live-tested on a Fly test instance (Sprites runtime, monitoring no repositories). The image was the epic head plus #3894, #3900 and the #3897 fix ( ✅ The OpenCode login menu now renders correctly on Sprites. Before this change: one glyph per line, with raw
I didn't complete a provider sign-in, since that needs a real account. So the PTY size was the real cause, not the chunked-sanitizer theory in #3896. |
|
ℹ️ Analyzed the follow-up request by @integry Analysis SummaryNo follow-up changes were needed for PR #3900. The branch already sets the PTY size before launching OpenCode, and the reported Fly test confirmed that the provider menu renders correctly on Sprites and that Down moves the selection from OpenCode to OpenAI. Provider sign-in remains unverified. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationReady to merge within scope. The PR addresses the zero-column PTY cause and adds focused handling for OpenCode’s interactive redraws. Review was static; no commands were run. ✅ PTY sizing before launch — Docker and Sprites set the terminal dimensions before executing OpenCode, preserving command arguments through ✅ Fragmented output handling — UTF-8 stream decoding preserves split characters, while the stateful terminal parser handles fragmented escape sequences and cursor-based menu redraws. ✅ Scoped input handling — Enter normalization applies only to OpenCode, matching the dashboard’s newline input without changing other providers’ input behavior. The authoritative current-head checks report 17 passed and no failures. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Complete provider login smoke testsThe live Sprites verification covered menu rendering and navigation, but stopped before provider authentication. A follow-up covering completed sign-in, credential persistence, and Ready status on Sprites and Docker would strengthen end-to-end confidence. This is optional because the supplied code and tests establish the targeted rendering fix, and no regression in credential handling was identified. S2: 🟢 Cover terminal retention boundariesAdd focused tests for ScoreThe targeted fix is supported by focused tests, passing current-head checks, and live Sprites confirmation. No merge blockers were identified; complete authentication and Docker smoke testing would provide additional confidence. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #3896
Branch:
3896/gpt-6.2-sol-sprites-opencode-login-me-20261129-2303-5pwCommits: ✅ Changes committed (75ea64a)
AI Processing Completed
Execution Details:
Summary:
Fixed #3896. OpenCode 2.4.2 emitted one glyph per line and broke ANSI sequences when its PTY reported zero columns. Sprites and Docker now set the PTY size before launching OpenCode. The dashboard preserves fragmented UTF-8 and escape sequences, redraws the menu in place, and sends the Enter key OpenCode expects.
76 server tests and 11 UI tests passed. A Chromium run with OpenCode 2.4.2 confirmed that the menu stays readable with one-byte output frames and that Up, Down, and Enter work.
Live Fly and Docker verification remains pending. This environment had neither Sprites credentials nor a Docker daemon, so live credential persistence, Ready status, and the Claude, Codex, and Vibe login rechecks remain unverified.
Review digest
Risk-tiered paths
packages/api/services/agentLoginDocker.ts(+2/−1): auth-looking pathpackages/api/services/agentLoginRemote.ts(+2/−1): auth-looking pathpackages/api/services/agentLoginSessionManager.ts(+22/−18): auth-looking pathpackages/api/services/agentLoginTerminal.ts(+137/−6): auth-looking pathpackages/core/src/agents/runtime/remoteLogin.ts(+5/−0): auth-looking pathpackages/core/src/agents/runtime/sprites/spritesLogin.ts(+6/−4): auth-looking pathpackages/core/src/index.ts(+1/−1)packages/api/test/agentLoginRoutes.test.ts(+18/−0)packages/api/test/agentLoginTerminal.test.ts(+27/−1)test/remoteAgentLogin.test.ts(+15/−2)Diff size: 10 files changed, +235/−34 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3896.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
OpenCode provider selection
OpenCode 2.4.2 running in a local PTY with the Sprites login output handler. The dashboard displays the redrawn menu after Down moves the selection to OpenAI.
Full-size original