A subagent's task its lead sealed goes to the provider that can open it
(sealedReader, #1109), but attempt's downgrades didn't know that: a
provider marked as having turned Codex's custom tools away had the
request translated from the start, and a refusal of the custom tools met
on the sealed turn itself translated on the fallback — and a translation
reads an agent_message's text and images alone, so the NEW_TASK header
went out and the task's sealed body stayed behind, with a 200 saying the
task was there.
A sealed task now goes with who can open it as it came, as a native
compaction does (#1099): every downgrade in attempt leaves it alone, and
the refusal met on the turn is the client's answer as the upstream said
it, not a 200 with the task gone.
Generated-by: GLM-5.3-Flash (ZCode)
Landed by the maintainer after (mote, darwin/arm64):
- this change's file(s) reverted with its tests kept: its new tests red;
restored, green
- full suite (go test -tags nogui ./... -timeout 45m) with the stack on
0b8c4bfc3: every package ok but two reds of that base, fixed on main
since (4c86b0ab4 cli route parity, e9fcc6229 tui "permission mode")
- rebased on f1c9014cd: go test of internal/gateway, internal/plugin,
internal/cli and internal/tui ok; go vet darwin, linux nogui, windows ok