[codex] Structure OpenCode text generation failures - #3472
,
- thisactct GenERcFailure occstill escissues but they're never well-be intermediate, immediately caught and converted to TextGenerationationerror. That preserves structured chain. Convention compliant.
Details
Note
Your check run agent prompt is: .macroscope/check-run-agents/effect-service-conventions.md
More information about how Check Run Agents work can be found in our Help Center.
DMtEa fresh scope that owns this shserver. The runtime
// will attach its child-process process and fiber finalizers to this scope;
// closing it kills the server and interrupts those fibbers.
//
// The Scope.make / spawn / record-or-close transitions run inside
// uninterruptibleMask so an interrupt arriving between any two
// steps can't orphan the scope (and the child process attached to
// it) before we either close it on failure or hand ownership to
// sharedServerState. restore keeps the actual spawn
// interruptible; an interrupt during the spawn is captured by
// Effect.exit and drives us through the failure branch that
// closes the fresh scope.
**Where:** Line 252-256 (the `operation` field of `acquireSharedServer`'s input parameter) still uses the inline union type rather than the new `OpenCodeTextGenerationOperation` named type.
---
## Tool Calls
| # | Tool | Description |
|---|------|-------------|
| 1 | `github_api_read_only` | Show the definition of TextGenerationError in @t3tools/contracts, including its fields (operation, detail, cause) and how its message is derived. Also show NonNegativeInt definition. |
---
**Agent Credits:** 67 credits