mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 08:05:12 +00:00
Rebasing onto #9152 made browser_tabs a known context name; add it to the known list so it keeps its <external_browser_tabs> tag and empty-output check instead of falling to the generic branch. Render unknown agent context names the way Codex renders context it does not send as a tool output, <external_{name}>, when the name has the shape Codex derives names in ([A-Za-z0-9_]{1,128}). Other names still use the generic <external_agent_context> tag, so a client supplied name is never embedded unchecked.