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
test(term-fidelity): opencode readiness hardening + db hygiene (#418)
Harness-only. (1) XDG_DATA_HOME isolation for the opencode matrix leg so tests use a throwaway session db instead of the user's real ~/.local/share/opencode/opencode.db (~3.2GB) — stops the matrix polluting real opencode history and removes a boot-contention source. (2) Opencode-only boot re-nudge: re-submits the readiness prompt once the home screen renders if the broker's spawn-time task injection landed before OpenTUI input was live (the injection/boot race pear-417 root-caused). Both changes are gated on cli==='opencode' — claude/codex/grok readiness paths untouched. Eliminated the readiness flake (28/28 vs ~1/8 pre-fix). Independently reviewed + CI green (checks/playwright/packaged-mcp-smoke).
constreadinessTask=`Reply with exactly one token made from the parts "TF", "${harness.cli.toUpperCase()}", "READY", joined with one underscore between adjacent parts. Do not use tools.`
@@ -180,7 +215,7 @@ export async function spawnRealAgent(harness: FidelityHarness): Promise<SpawnedA
180
215
root: harness.projectRoot,
181
216
cli: harness.cli,
182
217
name: requestedName,
183
-
task: `Reply with exactly one token made from the parts "TF", "${harness.cli.toUpperCase()}", "READY", joined with one underscore between adjacent parts. Do not use tools.`,
218
+
task: readinessTask,
184
219
args: initialArgs(harness.cli)
185
220
})
186
221
constagentName=spawned.name||requestedName
@@ -199,7 +234,15 @@ export async function spawnRealAgent(harness: FidelityHarness): Promise<SpawnedA
199
234
{message: `live xterm runtime should mount for ${agentName}`,timeout: 60_000}
0 commit comments