You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit af5668d
Browse filesBrowse the repository at this point in the historyBrowse files
opencode
committed
fix(panes): correct full-TUI argv and work around mini freeze
Full TUI panes closed immediately because defaultPaneArgv built
`opencode tui -s <id>`, but opencode has no `tui` subcommand — `tui` was
parsed as the directory argument and the process exited with
`ENOENT: chdir ... -> 'tui'`. The full TUI now attaches bare as
`opencode -s <id>`.
Mini panes froze during long tool calls because mini's long-lived
`session.wait` is aborted by Bun's default 300s fetch idle timeout
(upstream anomalyco/opencode#50135, fix PR #50248 still unmerged). Mini
panes now launch via `env BUN_CONFIG_HTTP_IDLE_TIMEOUT=0`, matching the
pending upstream fix.
- src/watch.ts: pane argv per command (mini env-wrapped, tui bare)
- test/watch.test.ts: cover both argv shapes
- AGENTS.md: document both behaviors
- Theme table regen: `node scripts/generate-theme-table.mjs` (fetches the
133
139
pinned `anomalyco/opencode` v2.0.5 tag) or `--from <dir>` for local assets.
134
140
Idempotent — output must be byte-identical on re-run.
135
-
- Keep tests representative of the *new* pane command shape when touching
136
-
pane argv (`["opencode", "mini", "-s", id]`; session id is `argv[3]`).
141
+
- Keep tests representative of the pane command shape when touching pane argv:
142
+
mini is `["env", "BUN_CONFIG_HTTP_IDLE_TIMEOUT=0", "opencode", "mini", "-s", id]`,
143
+
tui is `["opencode", "-s", id]` (there is no `tui` subcommand).
137
144
- Error messages are prefixed `opencode-mux:` and reference stderr.
138
145
-**Version variables**: on version bump, update both `src/version.ts` (`VERSION` constant) and the README version mention — these must always match `package.json``version`. Forgetting either causes stale version reporting.
139
146
-**Release flow**: `npm version <x.y.z>` (identity-env vars set) creates the
0 commit comments