Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): retain bounded runtime diagnostic details #10087

Closedjuliusmarmingewants to merge 3 commits intomain fromfix/retain-runtime-diagnostic-tailopened View on GitHub

Showing 3 changed files with 157 additions and 1 deletion (loading 1).

x
0 of 3 viewed, 3 left
145 additions and 0 deletionsapps/server/src/orchestration/Layers/ProviderRuntimeIngestion.test.tsModified
View file
@@ -3245,6 +3245,151 @@
expect(activityPayload?.message).toBe("runtime activity exploded");
+ it.each(
+ (["runtime.error", "runtime.warning"] as const).flatMap((type) =>
+ [
+ {
+ fixture: "reported",
+ message:
+ "2026-03-14T16:11:12.550224Z ERROR codex_core::codex: failed to load skill /home/sebherrerabe/repos/devsuite/.agent/skills/monorepo-scaffolding/SKILL.md: invalid YAML: mapping values are not allowed in this context at line 2 column 50",
+ },
+ {
+ fixture: "fictional",
+ message:
+ "2026-09-05T09:00:00.000000Z ERROR codex_core::codex: failed to load skill /workspace/example/.agent/skills/application-project-scaffolding/SKILL.md: invalid YAML: mapping values are not allowed in this context at line 2 column 50",
+ },
+ ].map((fixture) => ({ type, ...fixture })),
+ ),
+ )(
+ "retains the $fixture malformed-skill diagnostic tail in $type work-log detail",
+ async ({ type, message }) => {
+ const harness = await createHarness();
+ await harness.emitAndDrain([
+ {
+ type,
+ eventId: asEventId("malformed-skill-diagnostic"),
+ provider: ProviderDriverKind.make("codex"),
+ createdAt: "2026-01-01T00:00:01.000Z",
+ threadId: asThreadId("thread-1"),