Skip to content

fix: screenDiff wrong content for AgentTypeOpencode#3

Merged
KooshaPari merged 3 commits intomainfrom
fix/opencodescreen-diff
Feb 24, 2026
Merged

fix: screenDiff wrong content for AgentTypeOpencode#3
KooshaPari merged 3 commits intomainfrom
fix/opencodescreen-diff

Conversation

@KooshaPari
Copy link
Owner

Summary

Fixes #174 - screenDiff returns wrong content for AgentTypeOpencode

The bug was using slice index instead of original array index when finding first non-matching line after header.

Build: ✅

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76
- Add asciinema package to parse asciinema v2 recordings
- Convert recordings to echo agent scripts
- Enable using real agent interactions for e2e testing
Fixes #174 - screenDiff returns wrong content for AgentTypeOpencode

The bug was using slice index instead of original array index when
finding first non-matching line after header.
@KooshaPari KooshaPari merged commit 7eecd0a into main Feb 24, 2026
0 of 3 checks passed
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.

screenDiff returns wrong content for AgentTypeOpencode

1 participant