Skip to content

Hide the subagent helper's console window and list every OpenCode model - #116

Merged
m4rocks merged 1 commit into
mainfrom
subagent-fixes
Nov 17, 2026
Merged

m4rocks merged 1 commit into
mainfrom
subagent-fixes

Conversation

@m4rocks

@m4rocks m4rocks commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Summary

Two bugs shipped in 0.9.8 with Codex and OpenCode subagents.

  • On Windows, the helper started npx or opencode without hiding its console. Release builds have no console of their own, so a console window opened for each subagent run and each model lookup in Settings. It now uses platform::no_window like every other program Claudiu starts.
  • A model id with a colon or another character type names can't hold, such as ollama/qwen3:8b or openrouter/deepseek/deepseek-r1:free, gave no agent type. It vanished from the picker and the page but still counted toward "N of M on". Every such character now becomes a dash, and a long name is cut to 64 characters.
  • Each model's tag now shows the type as Claude Code names it, Claudiu:codex-gpt-6-1-sol, since the mod registers the types.

Evidence

  • cargo test: 494 passed, 0 failed. The type-name test now covers colons, spaces and a 70-character id. The headless test reads the Claudiu: tag and fails without the change.
  • Checked and left alone: a project opencode.json that allows bash, edit and write by name, top-level and under agent.build, still leaves read-only OpenCode with only glob, grep, read and skill. Asked to create a file, it couldn't, and the folder stayed unchanged.

Not checked: the console window itself, since that needs a release build on Windows.

Risk

Small. Two cut-short names that come out the same give one type, as two ids that differ only in dots and slashes already did. Revert this commit to undo it.

Refs #115

The ACP helper started npx or opencode without CREATE_NO_WINDOW, unlike every other program Claudiu starts. Release builds have no console of their own, so Windows opened a console window for each subagent run and each model lookup in Settings.

A model id with a character other than letters, digits, dots, dashes, underscores and slashes, such as `ollama/qwen3:8b`, gave no agent type, so it vanished from the picker and the page while still counting toward the total. Every such character now becomes a dash, and a long name is cut to the 64 characters Claude Code takes.

Each model's tag now shows the type as Claude Code names it, `Claudiu:codex-gpt-6-1-sol`.
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
claudiu Ready Ready Preview Nov 17, 2026 9:33am UTC

@m4rocks
m4rocks merged commit 979d8c1 into main Nov 17, 2026
5 checks passed
@m4rocks
m4rocks deleted the subagent-fixes branch November 24, 2026 22:38

This branch was successfully deployed

1 active deployment
Preview — df1d712c Deployed Nov 17, 2026 by vercel[bot]
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.

1 participant