trace-to-skill 0.1.64 → 0.1.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -71,6 +71,8 @@ Use it when you need to:
71
71
  - **Report deeplink and OAuth launch regressions:** run `trace-to-skill codex-report ./runs` when `codex://oauth_callback`, notification clicks, browser-extension activation, mobile links, or `codex app <path>` fail to route back into Codex.
72
72
  - **Diagnose stale connector auth/cache:** run `trace-to-skill codex-report ./runs` when Codex app connectors return `401 Reauthentication required`, keep the same `link_*`, report `isAccessible: false`, or survive restart/plugin reinstall/cache clearing.
73
73
  - **Explain missing MCP tools across Codex surfaces:** run `trace-to-skill codex-report ./runs` when MCP servers work in CLI or user-global config but are absent in VS Code, Desktop, WSL, or project-local sessions.
74
+ - **Report terminal output and scrollback integrity failures:** run `trace-to-skill codex-report ./runs` when Codex terminal output disappears, gets overwritten, truncates numbered lines, snaps scrollback to the bottom, or only survives in logs/transcripts.
75
+ - **Triage subagent lifecycle drift:** run `trace-to-skill codex-report ./runs` when completed or closed subagents stay visible, stale spawn edges remain open, child threads crowd the recent list, `agent thread limit reached` blocks new work, or compaction loses prior subagent IDs.
74
76
  - **Reduce approval friction:** run `trace-to-skill analyze ./runs` when `Approve for this session` is not remembered, repeated prompts push users toward Full Access, or trusted MCP tools like Playwright require dozens of approvals.
75
77
  - **Diagnose sandbox blockers:** run `trace-to-skill analyze ./runs` on Codex traces that fail with sandbox setup refresh, `os error 740`, ACL, ownership, or approval-mode permission errors.
76
78
  - **Debug Codex auth/connectivity:** run `trace-to-skill analyze ./runs` on logs with `token_exchange_failed`, `auth.openai.com/oauth/token`, Cloudflare challenge, proxy/CA, IPv6, or stream disconnect symptoms.
@@ -122,6 +124,8 @@ Open-source maintainers do not need more AI-generated noise. They need agents th
122
124
  - Did `codex://` OAuth callbacks, notification clicks, browser-extension launches, mobile pairing links, or `codex app <path>` fail to open the right Codex route?
123
125
  - Did a Codex app connector keep stale `link_*` or `isAccessible: false` metadata after `401 Reauthentication required`, restart, plugin reinstall, or cache regeneration?
124
126
  - Did MCP servers work in Codex CLI, `~/.codex/config.toml`, or a new conversation, but disappear from VS Code, Desktop, WSL, project `.codex/config.toml`, or an older session?
127
+ - Did Codex terminal scrollback, streamed output, or transcript rendering drop, overwrite, truncate, duplicate, or hide evidence lines that still exist in raw logs?
128
+ - Did completed, closed, interrupted, or stale subagents diverge between the Desktop UI, live registry, `thread_spawn_edges`, spawn quota, recent-list/sidebar, and parent-agent discoverability?
125
129
  - Did repeated approval prompts make a safer scoped mode unusable or require huge per-tool MCP approval configs?
126
130
  - Can the failure be reported to OpenAI with line-linked evidence, redaction notes, and the exact diagnostics maintainers need?
127
131
  - Can we produce an application-ready OpenAI OSS brief from the repo's actual license, distribution, readiness, and benchmark state?
@@ -201,6 +205,8 @@ Trace analysis detects run-level failures:
201
205
  | Codex connectivity | Auth token exchange, proxy/CA, IPv6, Cloudflare challenge, or ChatGPT transport errors block Codex |
202
206
  | Codex remote control | Mobile or remote sessions route through stale listeners, stale enrollment, or incomplete helper bundles |
203
207
  | Codex MCP discovery mismatch | MCP works in CLI or one config scope but disappears in VS Code, Desktop, WSL, project config, or an older session |
208
+ | Codex terminal output integrity | Terminal scrollback, streamed output, or transcript rendering drops, overwrites, truncates, duplicates, or hides lines that raw logs still contain |
209
+ | Codex subagent lifecycle | Completed, closed, stale, or interrupted subagents diverge across UI, registry, persisted spawn edges, quota, recent list, or parent discoverability |
204
210
  | Codex MCP runtime | MCP tools are configured but approval, namespace routing, unsupported callable names, or stdio transport fail at runtime |
205
211
  | Codex plugin runtime | Browser, Computer Use, Chrome, connectors, or bundled plugins are advertised but fail because helper paths, plugin-list schemas, or cache state drift |
206
212
  | Codex file tree UI | Desktop file tree, floating file panel, or file preview cannot be revealed, refreshes stale entries, or loses workspace navigation |
@@ -247,6 +253,8 @@ trace-to-skill demo clipboard-attachment
247
253
  trace-to-skill demo deeplink-launch
248
254
  trace-to-skill demo connector-auth-cache
249
255
  trace-to-skill demo mcp-discovery-mismatch
256
+ trace-to-skill demo terminal-output-integrity
257
+ trace-to-skill demo subagent-lifecycle
250
258
  trace-to-skill demo patch-overwrite
251
259
  trace-to-skill guard-patch ./change.patch --root .
252
260
  trace-to-skill session-audit ~/.codex --format json
@@ -461,7 +469,7 @@ jobs:
461
469
  issues: write
462
470
  steps:
463
471
  - uses: actions/checkout@v5
464
- - uses: grnbtqdbyx-create/trace-to-skill@v0.1.64
472
+ - uses: grnbtqdbyx-create/trace-to-skill@v0.1.66
465
473
  with:
466
474
  mode: all
467
475
  doctor-threshold: "85"
@@ -510,7 +518,7 @@ Composite action usage:
510
518
 
511
519
  ```yaml
512
520
  - id: trace-to-skill
513
- uses: grnbtqdbyx-create/trace-to-skill@v0.1.64
521
+ uses: grnbtqdbyx-create/trace-to-skill@v0.1.66
514
522
  with:
515
523
  mode: all
516
524
  doctor-threshold: "85"
@@ -552,7 +560,7 @@ Action outputs:
552
560
 
553
561
  By default, generated reports are also appended to the GitHub Actions Job Summary. Set `job-summary: "false"` to disable that UI output.
554
562
 
555
- Tagged Action releases build and run the CLI from `$GITHUB_ACTION_PATH`, so a workflow pinned to a release tag such as `@v0.1.64` executes that release's checked-out source instead of pulling the default branch at runtime.
563
+ Tagged Action releases build and run the CLI from `$GITHUB_ACTION_PATH`, so a workflow pinned to a release tag such as `@v0.1.66` executes that release's checked-out source instead of pulling the default branch at runtime.
556
564
 
557
565
  ## Codex Skill
558
566
 
@@ -101,6 +101,18 @@ const BENCHMARK_CASES = [
101
101
  fixture: "fixtures/codex-remote-control.md",
102
102
  expectedKinds: ["codex_remote_control", "weak_evidence"]
103
103
  },
104
+ {
105
+ id: "codex-terminal-output-integrity",
106
+ title: "Codex terminal output and scrollback integrity failure",
107
+ fixture: "fixtures/codex-terminal-output-integrity.md",
108
+ expectedKinds: ["codex_terminal_output_integrity", "weak_evidence"]
109
+ },
110
+ {
111
+ id: "codex-subagent-lifecycle",
112
+ title: "Codex subagent lifecycle and state reconciliation failure",
113
+ fixture: "fixtures/codex-subagent-lifecycle.md",
114
+ expectedKinds: ["codex_subagent_lifecycle", "weak_evidence"]
115
+ },
104
116
  {
105
117
  id: "quota-mismatch",
106
118
  title: "Codex quota mismatch",
@@ -1 +1 @@
1
- {"version":3,"file":"benchmark.js","sourceRoot":"","sources":["../../src/benchmark.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AA8B9C,MAAM,eAAe,GAA8B;IACjD;QACE,EAAE,EAAE,qBAAqB;QACzB,KAAK,EAAE,2BAA2B;QAClC,OAAO,EAAE,sBAAsB;QAC/B,aAAa,EAAE,EAAE;QACjB,YAAY,EAAE,IAAI;KACnB;IACD;QACE,EAAE,EAAE,iBAAiB;QACrB,KAAK,EAAE,yCAAyC;QAChD,OAAO,EAAE,wBAAwB;QACjC,aAAa,EAAE,CAAC,cAAc,EAAE,sBAAsB,EAAE,eAAe,EAAE,UAAU,EAAE,mBAAmB,CAAC;QACzG,eAAe,EAAE,IAAI;KACtB;IACD;QACE,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,4BAA4B;QACnC,OAAO,EAAE,8BAA8B;QACvC,aAAa,EAAE,CAAC,cAAc,EAAE,sBAAsB,EAAE,eAAe,CAAC;QACxE,eAAe,EAAE,IAAI;KACtB;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,KAAK,EAAE,mCAAmC;QAC1C,OAAO,EAAE,kCAAkC;QAC3C,aAAa,EAAE,CAAC,sBAAsB,EAAE,oBAAoB,EAAE,eAAe,CAAC;KAC/E;IACD;QACE,EAAE,EAAE,oBAAoB;QACxB,KAAK,EAAE,kCAAkC;QACzC,OAAO,EAAE,gCAAgC;QACzC,aAAa,EAAE,CAAC,oBAAoB,EAAE,eAAe,CAAC;KACvD;IACD;QACE,EAA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GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM;YACnG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;SAClC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,IAAI,CACR,EAAE,EACF,iBAAiB,EACjB,EAAE,EACF,SAAS,EACT,0BAA0B,EAC1B,wCAAwC,EACxC,KAAK,EACL,EAAE,CACH,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,SAAS,UAAU,CACjB,UAAmC,EACnC,aAA4B,EAC5B,QAAgB,EAChB,gBAAwB;IAExB,IAAI,UAAU,CAAC,YAAY,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;QAC9C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,UAAU,CAAC,eAAe,IAAI,gBAAgB,KAAK,CAAC,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AAChF,CAAC;AAED,SAAS,WAAW;IAClB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AAC7E,CAAC"}
package/dist/src/demo.js CHANGED
@@ -57,6 +57,18 @@ const DEMO_SCENARIOS = [
57
57
  fixture: "fixtures/codex-mcp-discovery-mismatch.md",
58
58
  description: "MCP servers work in CLI or one config scope but are absent in Desktop, VS Code, WSL, or project-local sessions."
59
59
  },
60
+ {
61
+ id: "terminal-output-integrity",
62
+ title: "Codex terminal output integrity",
63
+ fixture: "fixtures/codex-terminal-output-integrity.md",
64
+ description: "Terminal scrollback, streamed output, or transcript rendering drops, overwrites, truncates, or makes lines inaccessible."
65
+ },
66
+ {
67
+ id: "subagent-lifecycle",
68
+ title: "Codex subagent lifecycle",
69
+ fixture: "fixtures/codex-subagent-lifecycle.md",
70
+ description: "Completed, closed, stale, or interrupted subagents diverge between UI, live registry, persisted state, quota, and parent discoverability."
71
+ },
60
72
  {
61
73
  id: "token-burn",
62
74
  title: "Codex token burn",
@@ -143,6 +155,8 @@ export function renderDemoMarkdown(result) {
143
155
  "trace-to-skill demo deeplink-launch",
144
156
  "trace-to-skill demo connector-auth-cache",
145
157
  "trace-to-skill demo mcp-discovery-mismatch",
158
+ "trace-to-skill demo terminal-output-integrity",
159
+ "trace-to-skill demo subagent-lifecycle",
146
160
  "trace-to-skill demo file-tree-ui",
147
161
  "trace-to-skill demo usage-reset-drift",
148
162
  "```",
@@ -170,6 +184,8 @@ export function renderDemoScenarioList(scenarios = listDemoScenarios()) {
170
184
  "trace-to-skill demo deeplink-launch",
171
185
  "trace-to-skill demo connector-auth-cache",
172
186
  "trace-to-skill demo mcp-discovery-mismatch",
187
+ "trace-to-skill demo terminal-output-integrity",
188
+ "trace-to-skill demo subagent-lifecycle",
173
189
  "trace-to-skill demo --list",
174
190
  "```",
175
191
  ""
@@ -1 +1 @@
1
- {"version":3,"file":"demo.js","sourceRoot":"","sources":["../../src/demo.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAgBrD,MAAM,cAAc,GAAmB;IACrC;QACE,EAAE,EAAE,gBAAg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0C;QAC1C,qCAAqC;QACrC,0CAA0C;QAC1C,4CAA4C;QAC5C,+CAA+C;QAC/C,wCAAwC;QACxC,4BAA4B;QAC5B,KAAK;QACL,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,SAAS,WAAW;IAClB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AAC7E,CAAC"}
package/dist/src/rules.js CHANGED
@@ -379,6 +379,51 @@ const RULES = [
379
379
  suggestedRule: "When Codex remote-control or mobile routing fails, capture desktop/app/CLI versions, mobile OS/app version, host id, remote-control status, listener pid/executable path, bound port, cache directory id, helper bundle completeness, active server_name/enrollment, workspace root, last mobile command id, and whether re-pairing or restarting the listener changes the route.",
380
380
  suggestedSkill: "codex-remote-control-triage"
381
381
  },
382
+ {
383
+ kind: "codex_terminal_output_integrity",
384
+ severity: "high",
385
+ title: "Codex terminal output or scrollback integrity failure",
386
+ why: "When Codex TUI or terminal rendering drops, overwrites, truncates, or makes transcript lines inaccessible, users lose the evidence needed to review work, copy results, and file reliable bug reports even if the underlying log still contains the data.",
387
+ patterns: [
388
+ /\b(scrollback|terminal history|pane history|transcript|previous output|earlier output)\b.{0,220}\b(missing|disappear(?:s|ed)?|inaccessible|cannot be accessed|cannot scroll|can't scroll|scroll up|snap(?:s)? back|returns? to the bottom|truncated|cut off|overwritten|duplicated|misaligned|visually corrupted)\b/i,
389
+ /\b(output|assistant output|assistant message|stream(?:ed|ing)? output|render(?:ed|ing)? output)\b.{0,220}\b(truncated|cut off|missing middle|missing lines?|complete lines? (?:are )?missing|disappear(?:s|ed)?|overwritten|duplicated|partially missing|swallowed|shifted|misaligned|visually corrupted)\b/i,
390
+ /\b(complete lines?|entire lines?|numbered stream lines?|S-\d{4})\b.{0,180}\b(missing|disappear(?:s|ed)?|not in scrollback|not in terminal history|missing_count|missing_examples)\b/i,
391
+ /\b(missing_count|missing_examples|capture_file|missing_file)\b.{0,180}\b(scrollback|tmux|pane history|terminal|S-\d{4}|line truncation)\b/i,
392
+ /\btmux_scrollback_repro\.sh\b|\bline_truncation_repro\.md\b|\bvt100_history\.rs\b/i,
393
+ /\bWindows Terminal\b.{0,220}\b(scrollback|scrolling|missing lines?|output|PowerShell|WSL|rendering|scroll issue|history)\b.{0,220}\b(disappear(?:s|ed)?|missing|truncated|overwritten|duplicated|cannot scroll|snap(?:s)? back|corrupted)\b/i,
394
+ /\b(PowerShell|WSL|Zellij|Ghostty|Alacritty|tmux|Windows Terminal|xterm|iTerm2|Terminal)\b.{0,220}\b(scrollback|scrolling|streaming output|terminal rendering|viewport)\b.{0,220}\b(disappear(?:s|ed)?|missing|truncated|overwritten|duplicated|snap(?:s)? back|corrupted|inaccessible)\b/i,
395
+ /\bwhile (?:the )?(?:assistant|response|reply|output) (?:is )?streaming\b.{0,260}\b(scroll(?:ed|ing)? up|mouse wheel|older visible lines|previous history|visible transcript)\b.{0,220}\b(overwrite|swallow|disappear|shift|cut|misalign)\b/i,
396
+ /\bscroll(?:ing)? up\b.{0,180}\b(snap(?:s)? back|always scroll down|returns? to the bottom|cannot read previous output|cannot copy the full response|viewport)\b/i,
397
+ /\btransaction\/log view\b.{0,180}\b(still present|contains|has the missing lines?)\b/i,
398
+ /\b\/resume\b.{0,160}\b(recover(?:s)? the history|restored UI|history|transcript)\b/i,
399
+ /\bCtrl\s*\+\s*T\b.{0,160}\b(transcript|stopped working|scroll up|approval)\b/i
400
+ ],
401
+ suggestedRule: "When reporting Codex terminal output or scrollback integrity failures, capture Codex CLI/app/extension version, OS, shell, terminal emulator and version, remote/WSL/SSH/tmux/Zellij state, model, whether streaming was active, exact scroll action, whether the viewport snapped to bottom, first missing or duplicated line id, raw log/transcript/transaction evidence showing the line still exists, terminal capture such as tmux capture-pane or Windows Terminal screenshot/video, reproduction script or numbered-line harness output, control run without Codex-specific escape/history insertion, terminal dimensions and scrollback settings, whether /resume or transcript mode recovers the content, and whether downgrade or another terminal changes behavior.",
402
+ suggestedSkill: "codex-terminal-output-triage"
403
+ },
404
+ {
405
+ kind: "codex_subagent_lifecycle",
406
+ severity: "high",
407
+ title: "Codex subagent lifecycle or state reconciliation failure",
408
+ why: "When completed, closed, stale, or interrupted subagents remain visible, keep quota slots, lose parent discoverability, or diverge between UI, live registry, and persisted spawn-edge state, long-running Codex sessions become hard to trust or recover.",
409
+ patterns: [
410
+ /\bsubagents?\b.{0,220}\b(stale|zombie|orphan(?:ed)?|refus(?:e|ing) to close|cannot be closed|can't be closed|accumulat(?:e|es|ing)|remain visible|still listed|visible count|Show \d+ more)\b/i,
411
+ /\b(completed|closed|shutdown|not_found|not found|already[- ]closed|terminal|inactive)\b.{0,220}\bsubagents?\b.{0,220}\b(still visible|remain(?:s)? listed|active list|Subagents panel|side panel|cache|UI|right rail|stale)\b/i,
412
+ /\b(close_agent|close route|readback|live close|agent controls)\b.{0,220}\b(not_found|not found|shutdown|completed|closed|pending_init|no live handle|no live agent|still visible|still listed|stale|UI|cache)\b/i,
413
+ /\b(thread_spawn_edges|spawn edges?|child_thread_id|parent_thread_id)\b.{0,220}\b(open|closed|stale|status|persisted|SQLite|state_5\.sqlite|spawn-edge)\b/i,
414
+ /\b(agent thread limit reached|agents\.max_threads|max_threads|spawn quota|quota slot|active spawn quota|counted against|per-session agent thread limit)\b/i,
415
+ /\b(completed|final|TurnComplete|terminal)\b.{0,220}\b(subagents?|agents?)\b.{0,220}\b(count(?:s|ed|ing)? against|consume|block|release|quota|thread limit|spawn)\b/i,
416
+ /\bsubagent child threads?\b.{0,220}\b(top-level recent conversations|recent conversation|sidebar|archived\s*=\s*0|unarchived|consume.*slots|page limit|recent-list)\b/i,
417
+ /\b(list_agents|\/agents|loaded\/list|thread\/loaded\/list)\b.{0,220}\b(live agents|closed agents|prior spawned|previously spawned|not available|cannot retrieve|no way to list|discoverable)\b/i,
418
+ /\bsubagents?\b.{0,220}\b(context compact(?:ed|ion)?|auto compact(?:ed|ion)?|compaction)\b.{0,220}\b(not aware|forgot|id was not available|cannot list|created a new subagent|forked the main session)\b/i,
419
+ /\bfork_context\b.{0,220}\b(unbiased review|forked our conversation|full conversation history|main session|bad call|do not fork|biased reviewer)\b/i,
420
+ /\b(main agent|parent thread|parent agent|root thread)\b.{0,220}\b(subagents?|child threads?|spawned sessions?)\b.{0,220}\b(no way to list|not aware|resume|discover|stale|closed|open edges?)\b/i,
421
+ /\bsubagents?\b.{0,220}\b(MCP startup interrupted|codex_apps|connection lifecycle|MCP connections?|connection pool|file descriptor|SSE connection|long session|5\+ hours)\b/i,
422
+ /\b(background work|background task|parallel-first|Down panel|task panel)\b.{0,220}\b(subagents?|terminals|nonblocking|lastProgressAt|halt_reason|stop_reason|budget_slice|worker id|receipt)\b/i
423
+ ],
424
+ suggestedRule: "When reporting Codex subagent lifecycle failures, capture Codex app/CLI/extension version, OS, surface, model, subscription/workspace, root thread id, subagent ids/nicknames/roles, spawn/close/list commands or UI actions, close_agent results, list_agents or /agents output, thread_spawn_edges status counts, agent registry or max_threads/quota evidence, recent-list/sidebar behavior, whether child threads are archived or shown as top-level conversations, last-progress/heartbeat or halt reason, MCP server state for subagents, compaction/resume timing, screenshot or redacted UI state, whether restart/reload/new thread clears it, and whether stale agents are UI-only or still block new spawns.",
425
+ suggestedSkill: "codex-subagent-lifecycle-triage"
426
+ },
382
427
  {
383
428
  kind: "codex_mcp_discovery_mismatch",
384
429
  severity: "high",
@@ -545,7 +590,7 @@ const RULES = [
545
590
  /\binsufficient tool messages following tool_calls message\b/i,
546
591
  /\btool_call_id\b.{0,160}\b(missing|unmatched|not followed|protocol|invalid_request_error|tool messages?)\b/i,
547
592
  /\bclose_agent\b.{0,180}\b(hang forever|waits? forever|never returns|thread never terminates|agent thread limit reached|registry slot|already closed)\b/i,
548
- /\b(subagent|child thread|durable spawn edge|thread_spawn_edges)\b.{0,180}\b(closed|interrupted|terminated|registry slot|thread limit|hang forever|timeout)\b/i,
593
+ /\b(subagent|child thread|durable spawn edge|thread_spawn_edges)\b.{0,180}\b(registry slot|thread limit|agent thread limit reached|hang forever|never returns|timeout)\b/i,
549
594
  /\b(failed to revert changes|revert changes failed|undo button stopped working|could not undo|rollback failed)\b/i,
550
595
  /\b(Codex|agent|extension)\b.{0,180}\b(deleted|truncated|overwrote|destroyed|lost)\b.{0,160}\b(uncommitted code|existing file|codebase|file contents)\b/i,
551
596
  /\b(IDE-integrated diff|presenting changes|proposed changes|diff approval|show a diff|apply changes)\b.{0,180}\b(fail|missing|unsafe|rollback|revert|approval)\b/i
@@ -1 +1 @@
1
- {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../src/rules.ts"],"names":[],"mappings":"AAYA,MAAM,KAAK,GAAqB;IAC9B;QACE,IAAI,EAAE,sBAAsB;QAC5B,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,mDAAmD;QAC1D,GAAG,EAAE,wGAAwG;QAC7G,QAAQ,EAAE;YACR,6CAA6C;YAC7C,iFAAiF;SAClF;QACD,aAAa,EACX,sIAAsI;QACxI,cAAc,EAAE,gCAAgC;KACjD;IACD;QACE,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,sCAAsC;QAC7C,GAAG,EAAE,sIAAsI;QAC3I,QAAQ,EAAE;YACR,mGAAmG;SACpG;QACD,aAAa,EACX,gHAAgH;KACnH;IACD;QACE,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,mBAAmB;QAC1B,GAAG,EAAE,2FAA2F;QAChG,QAAQ,EAAE;YACR,0FAA0F;YAC1F,yDAAyD;SAC1D;QACD,aAAa,EACX,8IAA8I;KACjJ;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,QAAQ;QAClB,KAAK,EAAE,kCAAkC;QACzC,GAAG,EAAE,8HAA8H;QACnI,QAAQ,EAAE;YACR,yGAAyG;SAC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,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/D,CAAC;IAED,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAED,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;AAChD,CAAC;AAED,SAAS,QAAQ,CAAC,OAAe,EAAE,MAAc;IAC/C,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAChF,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,KAAiC,CAAC,CAAC,CAAC,SAAS,CAAC;AACtH,CAAC;AAED,SAAS,MAAM,CAAC,KAAa;IAC3B,OAAO,KAAK;SACT,OAAO,CAAC,uBAAuB,EAAE,oBAAoB,CAAC;SACtD,OAAO,CAAC,kCAAkC,EAAE,yBAAyB,CAAC;SACtE,OAAO,CAAC,0BAA0B,EAAE,uBAAuB,CAAC;SAC5D,OAAO,CAAC,gFAAgF,EAAE,gBAAgB,CAAC,CAAC;AACjH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export type Severity = "low" | "medium" | "high" | "critical";
2
- export type FindingKind = "premature_completion" | "tests_not_run" | "test_failure" | "ignored_instruction" | "hallucinated_file" | "over_editing" | "unsafe_command" | "secret_exposure" | "sensitive_file_access" | "hidden_unicode" | "prompt_injection" | "codex_remote_compact" | "context_compaction" | "codex_latest_turn_drift" | "codex_latency_regression" | "codex_thinking_hang" | "codex_clipboard_attachment" | "codex_deeplink_launch" | "codex_connector_auth_cache" | "codex_approval_friction" | "sandbox_permission" | "codex_windows_helper_path" | "codex_connectivity" | "codex_remote_control" | "codex_mcp_discovery_mismatch" | "codex_mcp_runtime" | "codex_plugin_runtime" | "codex_file_tree_ui" | "codex_session_state" | "codex_token_burn" | "codex_resource_leak" | "codex_tool_call_integrity" | "codex_usage_reset_drift" | "quota_mismatch" | "mcp_risk" | "weak_evidence";
2
+ export type FindingKind = "premature_completion" | "tests_not_run" | "test_failure" | "ignored_instruction" | "hallucinated_file" | "over_editing" | "unsafe_command" | "secret_exposure" | "sensitive_file_access" | "hidden_unicode" | "prompt_injection" | "codex_remote_compact" | "context_compaction" | "codex_latest_turn_drift" | "codex_latency_regression" | "codex_thinking_hang" | "codex_clipboard_attachment" | "codex_deeplink_launch" | "codex_connector_auth_cache" | "codex_approval_friction" | "sandbox_permission" | "codex_windows_helper_path" | "codex_connectivity" | "codex_remote_control" | "codex_terminal_output_integrity" | "codex_subagent_lifecycle" | "codex_mcp_discovery_mismatch" | "codex_mcp_runtime" | "codex_plugin_runtime" | "codex_file_tree_ui" | "codex_session_state" | "codex_token_burn" | "codex_resource_leak" | "codex_tool_call_integrity" | "codex_usage_reset_drift" | "quota_mismatch" | "mcp_risk" | "weak_evidence";
3
3
  export interface TraceInput {
4
4
  path: string;
5
5
  content: string;
package/docs/BENCHMARK.md CHANGED
@@ -22,6 +22,8 @@ This benchmark runs the public fixture pack that ships with the repository and p
22
22
  | Codex Windows helper and bundled tool path failure | `fixtures/codex-windows-helper-path.md` | 43 | 4 | 0 | `codex_plugin_runtime`, `codex_windows_helper_path`, `sandbox_permission`, `weak_evidence` | pass |
23
23
  | Codex auth and connectivity failure | `fixtures/codex-connectivity.md` | 75 | 2 | 0 | `codex_connectivity`, `weak_evidence` | pass |
24
24
  | Codex remote-control route health failure | `fixtures/codex-remote-control.md` | 75 | 2 | 0 | `codex_remote_control`, `weak_evidence` | pass |
25
+ | Codex terminal output and scrollback integrity failure | `fixtures/codex-terminal-output-integrity.md` | 75 | 2 | 0 | `codex_terminal_output_integrity`, `weak_evidence` | pass |
26
+ | Codex subagent lifecycle and state reconciliation failure | `fixtures/codex-subagent-lifecycle.md` | 75 | 2 | 0 | `codex_subagent_lifecycle`, `weak_evidence` | pass |
25
27
  | Codex quota mismatch | `fixtures/quota-mismatch.md` | 59 | 3 | 0 | `codex_usage_reset_drift`, `quota_mismatch`, `weak_evidence` | pass |
26
28
  | MCP config with secret exposure | `fixtures/mcp-risk.json` | 59 | 2 | 1 | `mcp_risk`, `secret_exposure` | pass |
27
29
  | Sensitive file access in agent context | `fixtures/sensitive-file-access.md` | 75 | 2 | 0 | `sensitive_file_access`, `weak_evidence` | pass |
@@ -32,7 +34,7 @@ This benchmark runs the public fixture pack that ships with the repository and p
32
34
  | Codex session resume and state failure | `fixtures/codex-session-state.md` | 59 | 3 | 0 | `codex_resource_leak`, `codex_session_state`, `weak_evidence` | pass |
33
35
  | Codex token burn and usage-drain loop | `fixtures/codex-token-burn.md` | 59 | 3 | 0 | `codex_resource_leak`, `codex_token_burn`, `weak_evidence` | pass |
34
36
  | Codex resource leak and runaway process | `fixtures/codex-resource-leak.md` | 75 | 2 | 0 | `codex_resource_leak`, `weak_evidence` | pass |
35
- | Codex tool-call integrity and rollback failure | `fixtures/codex-tool-call-integrity.md` | 59 | 3 | 0 | `codex_resource_leak`, `codex_tool_call_integrity`, `weak_evidence` | pass |
37
+ | Codex tool-call integrity and rollback failure | `fixtures/codex-tool-call-integrity.md` | 43 | 4 | 0 | `codex_resource_leak`, `codex_subagent_lifecycle`, `codex_tool_call_integrity`, `weak_evidence` | pass |
36
38
  | Codex apply_patch Add File overwrite safety | `fixtures/codex-apply-patch-overwrite.md` | 75 | 2 | 0 | `codex_tool_call_integrity`, `weak_evidence` | pass |
37
39
  | Codex usage reset schedule drift | `fixtures/codex-usage-reset-drift.md` | 75 | 2 | 0 | `codex_usage_reset_drift`, `weak_evidence` | pass |
38
40
  | Untrusted PR comment prompt injection | `fixtures/prompt-injection.md` | 50 | 3 | 1 | `premature_completion`, `prompt_injection`, `weak_evidence` | pass |
@@ -31,6 +31,8 @@ npx trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics
31
31
  | Deeplink, OAuth callback, and external launch regressions | `codex://oauth_callback?code=...` fails, `Unable to find Electron app`, `app\oauth_callback?code=...`, notification `type=click&tag=...` becomes an app path, AppX/MSIX protocol evidence, `codex app .` only focuses | `codex_deeplink_launch` | `trace-to-skill codex-report ./runs` or `trace-to-skill demo deeplink-launch` |
32
32
  | App connector auth cache and stale link regressions | `401 Reauthentication required`, `refresh token was revoked`, stale `link_*`, `isAccessible: false`, `codex_apps_tools` or `codex_app_directory` cache regeneration keeps broken connector state | `codex_connector_auth_cache` | `trace-to-skill codex-report ./runs` or `trace-to-skill demo connector-auth-cache` |
33
33
  | MCP discovery and config-scope mismatches | CLI `/mcp` works but VS Code/Desktop has no `mcp__*` tools, project `.codex/config.toml` ignored, `codex mcp get` says `No MCP server named`, WSL opens Windows `config.toml`, `CODEX_HOME` differs | `codex_mcp_discovery_mismatch` | `trace-to-skill codex-report ./runs` or `trace-to-skill demo mcp-discovery-mismatch` |
34
+ | Terminal output and scrollback integrity failures | scrollback lines disappear, streaming output overwrites older visible transcript, complete numbered lines are missing, `missing_count`, `tmux_scrollback_repro.sh`, viewport snaps to bottom, transcript mode cannot recover output | `codex_terminal_output_integrity` | `trace-to-skill codex-report ./runs` or `trace-to-skill demo terminal-output-integrity` |
35
+ | Subagent lifecycle and state reconciliation failures | completed/closed subagents remain visible, stale `thread_spawn_edges`, `agent thread limit reached`, `close_agent` hangs or returns `not_found`, child threads crowd recent conversations, compaction loses prior subagent IDs, forked review inherits parent context | `codex_subagent_lifecycle` | `trace-to-skill codex-report ./runs` or `trace-to-skill demo subagent-lifecycle` |
34
36
  | Approval persistence and MCP approval friction | `Approve for this session` is not remembered, command approval cache misses, repeated file-change approvals, `approval_policy = "never"` still prompts for MCP tools, per-tool approval configs explode | `codex_approval_friction` | `trace-to-skill codex-report ./runs` |
35
37
  | Config and Preferences drift | legacy `profile` / `[profiles.*]`, `configVersionConflict`, Preferences `Unable to save`, stale model pin, missing `default_permissions` profile, enabled plugin cache missing, Windows elevated sandbox mode | `sandbox_permission`, `codex_plugin_runtime`, `codex_approval_friction` | `trace-to-skill config-audit ~/.codex --format json` |
36
38
  | Bundled plugin cache and marketplace drift | Computer Use unavailable, Browser/Chrome plugin unavailable, generated runtime marketplace omits bundled plugins, missing `.mcp.json` or `plugin.json`, helper app not installed, `CODEX_HOME` points at another runtime | `codex_plugin_runtime`, `codex_mcp_runtime` | `trace-to-skill plugin-audit ~/.codex --app /Applications/Codex.app --format json` |
@@ -68,6 +70,8 @@ npx trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics
68
70
  - Include exact redacted `codex://` URI shape, connector/plugin, browser, error dialog text, app running state, AppX/MSIX protocol registration evidence such as AppUserModelID and DelegateExecute, HKCU/HKCR `codex` keys, command-line arguments, `Start-Process "codex://test"` repro, and repair/reinstall/re-register attempts for deeplink/OAuth launch regressions.
69
71
  - Include connector/plugin name and id, installed plugin root, exact Codex Apps tool name, 401/reauth text, `link_*` id before and after reconnect/cache regeneration, `isAccessible` state, redacted `codex_apps_tools`/`codex_app_directory` metadata, ChatGPT app page state, and external MCP workaround result for connector auth-cache regressions.
70
72
  - Include effective `CODEX_HOME`, config files considered, redacted MCP sections, trust/profile/default-permissions state, `codex mcp list/get`, CLI-versus-Desktop/VS Code comparison, loaded config path/log lines, WSL/remote/SSH state, and restart/reload/new-conversation results for MCP discovery mismatches.
73
+ - Include terminal emulator/version, shell, WSL/SSH/tmux/Zellij state, streaming state, exact scroll action, viewport snap behavior, first missing or duplicated line id, raw log/transcript proof, terminal capture, numbered-line harness/control output, terminal dimensions/scrollback settings, and `/resume` or transcript recovery behavior for terminal-output integrity reports.
74
+ - Include root thread id, subagent ids/nicknames/roles, spawn/close/list commands, `close_agent` results, `list_agents` or `/agents` output, `thread_spawn_edges` status counts, `agents.max_threads` or registry quota evidence, recent-list/sidebar behavior, child-thread archive/top-level status, last-progress or halt reason, MCP server state for subagents, compaction/resume timing, redacted UI evidence, restart/reload behavior, and whether stale agents are UI-only or still block spawns for subagent-lifecycle reports.
71
75
  - Include selected approval scope, displayed vs executed command, MCP server/tool names, visible args, repeated prompt count, and config snippets for approval-friction reports.
72
76
  - Include `config-audit` output for Preferences/config, sandbox, model-pin, MCP approval, and plugin-cache reports.
73
77
  - Include `plugin-audit` output, plugin name/version, cache path, helper path, manifest path, runtime marketplace, app-bundle marketplace, native pipe env vars, settings/plugin-list errors, and restart behavior for plugin runtime failures.
@@ -89,6 +93,8 @@ npx trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics
89
93
  - Deeplink, OAuth callback, and external launch regressions: https://github.com/openai/codex/issues/25203, https://github.com/openai/codex/issues/25231, https://github.com/openai/codex/issues/25368, https://github.com/openai/codex/issues/25333
90
94
  - App connector auth cache and stale link regressions: https://github.com/openai/codex/issues/24675, https://github.com/openai/codex/issues/25443
91
95
  - MCP discovery and config-scope mismatches: https://github.com/openai/codex/issues/6465, https://github.com/openai/codex/issues/13025, https://github.com/openai/codex/issues/13549
96
+ - Terminal output and scrollback integrity failures: https://github.com/openai/codex/issues/15380, https://github.com/openai/codex/issues/24849, https://github.com/openai/codex/issues/10726
97
+ - Subagent lifecycle and state reconciliation failures: https://github.com/openai/codex/issues/23930, https://github.com/openai/codex/issues/23700, https://github.com/openai/codex/issues/25341, https://github.com/openai/codex/issues/25179, https://github.com/openai/codex/issues/22779, https://github.com/openai/codex/issues/24281, https://github.com/openai/codex/issues/25426, https://github.com/openai/codex/issues/22099
92
98
  - Approval persistence and MCP approval friction: https://github.com/openai/codex/issues/4212, https://github.com/openai/codex/issues/13476, https://github.com/openai/codex/issues/2998
93
99
  - Config and Preferences drift: https://github.com/openai/codex/issues/25440, https://github.com/openai/codex/issues/25442, https://github.com/openai/codex/issues/20538, https://github.com/openai/codex/issues/24963
94
100
  - Latest-turn drift and compaction memory loss: https://github.com/openai/codex/issues/8648, https://github.com/openai/codex/issues/5957, https://github.com/openai/codex/issues/10823, https://github.com/openai/codex/issues/11626
package/docs/DEMO.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # trace-to-skill Demo
2
2
 
3
- Scenario: **Codex MCP discovery mismatch**
3
+ Scenario: **Codex subagent lifecycle**
4
4
 
5
- MCP servers work in CLI or one config scope but are absent in Desktop, VS Code, WSL, or project-local sessions.
5
+ Completed, closed, stale, or interrupted subagents diverge between UI, live registry, persisted state, quota, and parent discoverability.
6
6
 
7
- Fixture: `fixtures/codex-mcp-discovery-mismatch.md`
7
+ Fixture: `fixtures/codex-subagent-lifecycle.md`
8
8
 
9
9
  This is a packaged public fixture, so you can try the project without collecting a private trace first.
10
10
 
@@ -14,7 +14,7 @@ This is a packaged public fixture, so you can try the project without collecting
14
14
 
15
15
  Score: **75/100**
16
16
 
17
- Likely failure class: **Codex MCP discovery or config-scope mismatch (codex_mcp_discovery_mismatch, high)**
17
+ Likely failure class: **Codex subagent lifecycle or state reconciliation failure (codex_subagent_lifecycle, high)**
18
18
 
19
19
  Agent workflow needs clearer verification, instruction, or security hardening before broad reuse.
20
20
 
@@ -23,22 +23,25 @@ Agent workflow needs clearer verification, instruction, or security hardening be
23
23
  ```md
24
24
  ### What happened?
25
25
 
26
- trace-to-skill detected Codex MCP discovery or config-scope mismatch (codex_mcp_discovery_mismatch). MCP servers can work in Codex CLI or one config scope while Desktop, VS Code, WSL, remote, or project-local sessions silently load another scope and expose no tools.
26
+ trace-to-skill detected Codex subagent lifecycle or state reconciliation failure (codex_subagent_lifecycle). When completed, closed, stale, or interrupted subagents remain visible, keep quota slots, lose parent discoverability, or diverge between UI, live registry, and persisted spawn-edge state, long-running Codex sessions become hard to trust or recover.
27
27
 
28
28
  ### Detected failure class
29
29
 
30
- - codex_mcp_discovery_mismatch: Codex MCP discovery or config-scope mismatch (high)
30
+ - codex_subagent_lifecycle: Codex subagent lifecycle or state reconciliation failure (high)
31
31
 
32
32
  ### Evidence
33
33
 
34
- #### Codex MCP discovery or config-scope mismatch
35
- - fixtures/codex-mcp-discovery-mismatch.md:20 - MCP servers not detected in Codex VS Code extension, but working in Codex CLI.
36
- - fixtures/codex-mcp-discovery-mismatch.md:60 - Open config.toml in WSL environment still opens the Windows config.toml.
37
- - fixtures/codex-mcp-discovery-mismatch.md:63 - CODEX_HOME differs between CLI, VS Code, WSL, remote SSH, and the standalone app.
34
+ #### Codex subagent lifecycle or state reconciliation failure
35
+ - fixtures/codex-subagent-lifecycle.md:16 - Completed or closed subagents remain visible in the Subagents panel.
36
+ - fixtures/codex-subagent-lifecycle.md:17 - The app shows stale subagent cards after close/readback reports no live agent handle.
37
+ - fixtures/codex-subagent-lifecycle.md:18 - The visible subagent count grows very large; the panel can show Show 67 more or 100+ stale entries.
38
+ - fixtures/codex-subagent-lifecycle.md:20 - It is unclear which subagents are active versus stale UI/cache entries.
39
+ - fixtures/codex-subagent-lifecycle.md:27 - thread_spawn_edges status count: closed=549, open=0
40
+ - fixtures/codex-subagent-lifecycle.md:28 - After restarting Codex Desktop multiple times, the Subagents panel still visually shows stale subagent cards.
38
41
 
39
42
  ### Diagnostics to attach
40
43
 
41
- - When reporting Codex MCP discovery or config-scope mismatches, capture app/CLI/extension version, OS, IDE, remote/WSL/SSH state, workspace root, effective CODEX_HOME, all config files considered (`~/.codex/config.toml`, project `.codex/config.toml`, `.vscode/mcp.json`, `.mcp.json`), exact MCP sections without secrets, trust/profile/default-permissions state, `codex mcp list` and `codex mcp get <server>`, CLI versus Desktop/VS Code comparison, loaded config path or extension logs, whether moving the same server to user-global config fixes it, whether reload/restart/new conversation changes tool exposure, and whether the current session exposes any `mcp__*` tools.
44
+ - When reporting Codex subagent lifecycle failures, capture Codex app/CLI/extension version, OS, surface, model, subscription/workspace, root thread id, subagent ids/nicknames/roles, spawn/close/list commands or UI actions, close_agent results, list_agents or /agents output, thread_spawn_edges status counts, agent registry or max_threads/quota evidence, recent-list/sidebar behavior, whether child threads are archived or shown as top-level conversations, last-progress/heartbeat or halt reason, MCP server state for subagents, compaction/resume timing, screenshot or redacted UI state, whether restart/reload/new thread clears it, and whether stale agents are UI-only or still block new spawns.
42
45
 
43
46
  ### Privacy
44
47
 
@@ -47,20 +50,25 @@ trace-to-skill detected Codex MCP discovery or config-scope mismatch (codex_mcp_
47
50
 
48
51
  ## Findings
49
52
 
50
- ### 1. Codex MCP discovery or config-scope mismatch
53
+ ### 1. Codex subagent lifecycle or state reconciliation failure
51
54
 
52
55
  Severity: **high**
53
56
 
54
- MCP servers can work in Codex CLI or one config scope while Desktop, VS Code, WSL, remote, or project-local sessions silently load another scope and expose no tools.
57
+ When completed, closed, stale, or interrupted subagents remain visible, keep quota slots, lose parent discoverability, or diverge between UI, live registry, and persisted spawn-edge state, long-running Codex sessions become hard to trust or recover.
55
58
 
56
59
  Evidence:
57
- - `fixtures/codex-mcp-discovery-mismatch.md:20` MCP servers not detected in Codex VS Code extension, but working in Codex CLI.
58
- - `fixtures/codex-mcp-discovery-mismatch.md:60` Open config.toml in WSL environment still opens the Windows config.toml.
59
- - `fixtures/codex-mcp-discovery-mismatch.md:63` CODEX_HOME differs between CLI, VS Code, WSL, remote SSH, and the standalone app.
60
+ - `fixtures/codex-subagent-lifecycle.md:16` Completed or closed subagents remain visible in the Subagents panel.
61
+ - `fixtures/codex-subagent-lifecycle.md:17` The app shows stale subagent cards after close/readback reports no live agent handle.
62
+ - `fixtures/codex-subagent-lifecycle.md:18` The visible subagent count grows very large; the panel can show Show 67 more or 100+ stale entries.
63
+ - `fixtures/codex-subagent-lifecycle.md:20` It is unclear which subagents are active versus stale UI/cache entries.
64
+ - `fixtures/codex-subagent-lifecycle.md:27` thread_spawn_edges status count: closed=549, open=0
65
+ - `fixtures/codex-subagent-lifecycle.md:28` After restarting Codex Desktop multiple times, the Subagents panel still visually shows stale subagent cards.
66
+ - `fixtures/codex-subagent-lifecycle.md:36` Codex subagents have been going stale and refusing to close for the past week.
67
+ - `fixtures/codex-subagent-lifecycle.md:47` Long sessions with stale subagents may hold MCP connections or leave connection lifecycle state unclear.
60
68
 
61
69
  Suggested rule:
62
70
 
63
- > When reporting Codex MCP discovery or config-scope mismatches, capture app/CLI/extension version, OS, IDE, remote/WSL/SSH state, workspace root, effective CODEX_HOME, all config files considered (`~/.codex/config.toml`, project `.codex/config.toml`, `.vscode/mcp.json`, `.mcp.json`), exact MCP sections without secrets, trust/profile/default-permissions state, `codex mcp list` and `codex mcp get <server>`, CLI versus Desktop/VS Code comparison, loaded config path or extension logs, whether moving the same server to user-global config fixes it, whether reload/restart/new conversation changes tool exposure, and whether the current session exposes any `mcp__*` tools.
71
+ > When reporting Codex subagent lifecycle failures, capture Codex app/CLI/extension version, OS, surface, model, subscription/workspace, root thread id, subagent ids/nicknames/roles, spawn/close/list commands or UI actions, close_agent results, list_agents or /agents output, thread_spawn_edges status counts, agent registry or max_threads/quota evidence, recent-list/sidebar behavior, whether child threads are archived or shown as top-level conversations, last-progress/heartbeat or halt reason, MCP server state for subagents, compaction/resume timing, screenshot or redacted UI state, whether restart/reload/new thread clears it, and whether stale agents are UI-only or still block new spawns.
64
72
 
65
73
 
66
74
  ## Reporter Notes
@@ -81,6 +89,8 @@ Suggested rule:
81
89
  - `clipboard-attachment`: Copy as Markdown, long-paste conversion, or generated Pasted text.txt attachments break prompt and report workflows.
82
90
  - `deeplink-launch`: OAuth callbacks, notification clicks, mobile links, or `codex app <path>` external activation fail to route into Codex.
83
91
  - `connector-auth-cache`: App connectors keep stale `link_*` auth or discovery metadata after reauth-required responses.
92
+ - `mcp-discovery-mismatch`: MCP servers work in CLI or one config scope but are absent in Desktop, VS Code, WSL, or project-local sessions.
93
+ - `terminal-output-integrity`: Terminal scrollback, streamed output, or transcript rendering drops, overwrites, truncates, or makes lines inaccessible.
84
94
  - `token-burn`: Usage drains from background polling, idle activity, compaction loops, retries, or cached-heavy turns.
85
95
  - `patch-overwrite`: `apply_patch` accepts `*** Add File` for an existing path, turning a create operation into a silent overwrite.
86
96
  - `sensitive-files`: Secrets, local credentials, production env files, or private databases enter agent context.
@@ -98,6 +108,8 @@ trace-to-skill demo clipboard-attachment
98
108
  trace-to-skill demo deeplink-launch
99
109
  trace-to-skill demo connector-auth-cache
100
110
  trace-to-skill demo mcp-discovery-mismatch
111
+ trace-to-skill demo terminal-output-integrity
112
+ trace-to-skill demo subagent-lifecycle
101
113
  trace-to-skill demo file-tree-ui
102
114
  trace-to-skill demo usage-reset-drift
103
115
  ```
package/docs/DISCOVERY.md CHANGED
@@ -28,6 +28,8 @@ This page is written for maintainers, search engines, package indexes, and AI re
28
28
  - Codex mobile or remote-control appears connected but routes through stale listeners, stale enrollment, incomplete helper bundles, empty backend environments, or stale Android/iOS session state.
29
29
  - Codex MCP tools are visible in `tools/list` but fail at runtime because approval is cancelled, elicitation is unsupported in exec mode, namespace or `serverName` metadata is dropped, routed names become `unsupported call`, or stdio transport closes.
30
30
  - Codex MCP servers work in CLI or one config scope but are absent in VS Code, Desktop, WSL, remote, project-local, or older-conversation sessions because the effective config path, `CODEX_HOME`, trust/profile state, or tool exposure differs.
31
+ - Codex terminal output or scrollback becomes unreliable because streamed lines disappear, get overwritten, truncate, duplicate, misalign, snap to the bottom, or only survive in logs/transcripts.
32
+ - Codex subagents become hard to trust because completed or closed agents remain visible, stale spawn edges stay open, child threads crowd the recent list, spawn quota is exhausted, or compaction loses prior subagent IDs.
31
33
  - Codex approval flow repeatedly prompts after `Approve for this session`, forgets a safe approval scope, or forces large trusted MCP servers into noisy per-tool approval configs.
32
34
  - Codex config drift makes Preferences unable to save, keeps legacy `profile` / `[profiles.*]` config after migration, pins an unavailable model, points `default_permissions` at a missing profile, enables Windows elevated sandbox mode, or references plugin cache entries that are missing on disk.
33
35
  - Codex Desktop file tree, folder icon, floating file panel, or built-in file preview disappears, goes stale, or cannot be revealed by `View > Toggle File Tree`.
@@ -69,6 +71,8 @@ npx trace-to-skill demo clipboard-attachment
69
71
  npx trace-to-skill demo deeplink-launch
70
72
  npx trace-to-skill demo connector-auth-cache
71
73
  npx trace-to-skill demo mcp-discovery-mismatch
74
+ npx trace-to-skill demo terminal-output-integrity
75
+ npx trace-to-skill demo subagent-lifecycle
72
76
  npx trace-to-skill scorecard .
73
77
  npx trace-to-skill lint-agents .
74
78
  npx trace-to-skill guard-github-event "$GITHUB_EVENT_PATH"
@@ -120,7 +124,7 @@ npx trace-to-skill suggest ./runs --target agents-md
120
124
 
121
125
  ## Related Keywords
122
126
 
123
- Codex, OpenAI Codex, Codex issue report, OpenAI triage, Codex diagnostics bundle, privacy-preserving support bundle, Codex plugin audit, Computer Use unavailable, Codex Browser plugin unavailable, bundled marketplace mismatch, generated runtime marketplace, plugin manifest missing, CODEX_HOME mismatch, Codex CLI, Codex sandbox, Windows sandbox, Codex config audit, Codex config.toml, Codex Preferences unable to save, configVersionConflict, default_permissions missing profile, Codex Windows helper path, Codex WindowsApps, Codex rg Access Denied, Codex ripgrep, CodexSandboxUsers, LocalCache Local OpenAI Codex bin, node_repl spawn setup refresh, Codex approval friction, Approve for this session, Allow for this session, approval_policy never, MCP approval prompts, default_tools_approval_mode, Playwright MCP approvals, Chrome DevTools MCP approvals, Codex auth, token_exchange_failed, Codex connectivity, stream disconnected, Codex connector auth cache, Codex Apps stale link, codex_apps_tools, codex_app_directory, Reauthentication required, refresh token revoked, isAccessible false, link_ connector, Codex deeplink, Codex OAuth callback, codex://oauth_callback, Unable to find Electron app, Error launching app, type=click&tag, AppUserModelID, DelegateExecute, codex app path, Codex remote compact, responses/compact, /compact timeout, tcp_user_timeout, stream_idle_timeout_ms, Codex remote control, Codex mobile, Waiting for desktop, Directory Unavailable, stale listener, Codex MCP runtime, MCP unsupported call, mcp__node_repl__js, MCP namespace serverName, MCP Transport closed, StdioServerTransport, Codex plugin runtime, Computer Use native pipe path unavailable, SKY_CUA_NATIVE_PIPE_DIRECTORY, Plugin loading failed, plugin/list unknown variant vertical, Codex Browser plugin, Codex Computer Use, Codex Chrome plugin, stale plugin cache, codex plugin add, Codex file tree, Toggle File Tree, missing folder icon, floating file panel stale, file preview fails, workspace navigation, Codex latest-turn drift, Codex replies to earlier messages, stale prompt response, ignoring latest message, previous prompt, auto compaction forgets edits, raw tool payload leak, write_stdin session_id, Codex latency regression, GPT-5.5 Fast slow, Codex too slow, thinking stalls, Codex thinking hang, Codex stuck thinking, Codex Working stuck, no streamed follow-up, first response_item delayed, responses_http time.idle, model_client.stream_responses_api, turn/start, task_started, Codex Copy as Markdown missing, Codex Pasted text.txt, Codex long pasted prompt attachment, Codex clipboard export, Codex paste as text, Codex generated attachment preview edit, Codex goal ignores attachment, pasted-text-attachments.json, fileAttachments promptRaw composer.getText, pre-first-token latency, search/read latency, runtime scheduling latency, Codex resume, Codex session audit, Codex history audit, Codex session index, session_index.jsonl, Codex session state, rollout JSONL, logs_2.sqlite, codex-tui.log, sandbox.log, thread_goals, state_5.sqlite, goals_1.sqlite, archived chats, Codex token burn, Codex usage evidence, Codex rate-limit evidence, Codex usage drain, Codex usage reset, Codex weekly reset drift, reset_at changed, deterministic reset, rate limit reset, write_stdin polling, cached input tokens, compaction tax, background process polling, Codex resource leak, Codex performance, high CPU, high GPU, shell-snapshot, Code Helper Renderer, Codex tool-call integrity, apply_patch, apply_patch Add File overwrite, patch guard, guard-patch, Add File symlink, tool_call_id, close_agent, failed revert changes, patch safety, Codex quota, usage limit, rate limits, sensitive files, Codex privacy, .env, private keys, credential files, AGENTS.md, SKILL.md, Claude Code, Cursor, Copilot coding agent, Gemini CLI, MCP, Model Context Protocol, prompt injection, agent evals, AI code review, open-source maintainers, trace redaction, SARIF, GitHub Actions.
127
+ Codex, OpenAI Codex, Codex issue report, OpenAI triage, Codex diagnostics bundle, privacy-preserving support bundle, Codex plugin audit, Computer Use unavailable, Codex Browser plugin unavailable, bundled marketplace mismatch, generated runtime marketplace, plugin manifest missing, CODEX_HOME mismatch, Codex CLI, Codex sandbox, Windows sandbox, Codex config audit, Codex config.toml, Codex Preferences unable to save, configVersionConflict, default_permissions missing profile, Codex Windows helper path, Codex WindowsApps, Codex rg Access Denied, Codex ripgrep, CodexSandboxUsers, LocalCache Local OpenAI Codex bin, node_repl spawn setup refresh, Codex approval friction, Approve for this session, Allow for this session, approval_policy never, MCP approval prompts, default_tools_approval_mode, Playwright MCP approvals, Chrome DevTools MCP approvals, Codex auth, token_exchange_failed, Codex connectivity, stream disconnected, Codex connector auth cache, Codex Apps stale link, codex_apps_tools, codex_app_directory, Reauthentication required, refresh token revoked, isAccessible false, link_ connector, Codex deeplink, Codex OAuth callback, codex://oauth_callback, Unable to find Electron app, Error launching app, type=click&tag, AppUserModelID, DelegateExecute, codex app path, Codex remote compact, responses/compact, /compact timeout, tcp_user_timeout, stream_idle_timeout_ms, Codex remote control, Codex mobile, Waiting for desktop, Directory Unavailable, stale listener, Codex terminal output, Codex scrollback, Codex terminal history, terminal output integrity, missing_count, missing_examples, tmux_scrollback_repro.sh, line_truncation_repro.md, Windows Terminal scrollback, transcript mode, Codex subagent lifecycle, stale subagents, close_agent, thread_spawn_edges, agent thread limit reached, agents.max_threads, list_agents, /agents, subagent child threads, fork_context, unbiased review, subagent recent conversations, Codex MCP runtime, MCP unsupported call, mcp__node_repl__js, MCP namespace serverName, MCP Transport closed, StdioServerTransport, Codex plugin runtime, Computer Use native pipe path unavailable, SKY_CUA_NATIVE_PIPE_DIRECTORY, Plugin loading failed, plugin/list unknown variant vertical, Codex Browser plugin, Codex Computer Use, Codex Chrome plugin, stale plugin cache, codex plugin add, Codex file tree, Toggle File Tree, missing folder icon, floating file panel stale, file preview fails, workspace navigation, Codex latest-turn drift, Codex replies to earlier messages, stale prompt response, ignoring latest message, previous prompt, auto compaction forgets edits, raw tool payload leak, write_stdin session_id, Codex latency regression, GPT-5.5 Fast slow, Codex too slow, thinking stalls, Codex thinking hang, Codex stuck thinking, Codex Working stuck, no streamed follow-up, first response_item delayed, responses_http time.idle, model_client.stream_responses_api, turn/start, task_started, Codex Copy as Markdown missing, Codex Pasted text.txt, Codex long pasted prompt attachment, Codex clipboard export, Codex paste as text, Codex generated attachment preview edit, Codex goal ignores attachment, pasted-text-attachments.json, fileAttachments promptRaw composer.getText, pre-first-token latency, search/read latency, runtime scheduling latency, Codex resume, Codex session audit, Codex history audit, Codex session index, session_index.jsonl, Codex session state, rollout JSONL, logs_2.sqlite, codex-tui.log, sandbox.log, thread_goals, state_5.sqlite, goals_1.sqlite, archived chats, Codex token burn, Codex usage evidence, Codex rate-limit evidence, Codex usage drain, Codex usage reset, Codex weekly reset drift, reset_at changed, deterministic reset, rate limit reset, write_stdin polling, cached input tokens, compaction tax, background process polling, Codex resource leak, Codex performance, high CPU, high GPU, shell-snapshot, Code Helper Renderer, Codex tool-call integrity, apply_patch, apply_patch Add File overwrite, patch guard, guard-patch, Add File symlink, tool_call_id, failed revert changes, patch safety, Codex quota, usage limit, rate limits, sensitive files, Codex privacy, .env, private keys, credential files, AGENTS.md, SKILL.md, Claude Code, Cursor, Copilot coding agent, Gemini CLI, MCP, Model Context Protocol, prompt injection, agent evals, AI code review, open-source maintainers, trace redaction, SARIF, GitHub Actions.
124
128
 
125
129
  ## Non-Goals
126
130
 
@@ -96,6 +96,22 @@ Common signals include `Waiting for desktop`, `Directory: Unavailable`, `remote-
96
96
 
97
97
  The fix is to capture desktop/app/CLI versions, mobile OS/app version, host id, remote-control status, listener pid and executable path, bound port, cache directory id, helper bundle completeness, active `server_name` or enrollment id, workspace root, last mobile command id, and whether restarting the listener or re-pairing changes the route.
98
98
 
99
+ ## Codex Terminal Output Integrity
100
+
101
+ Codex terminal output, streamed assistant text, or scrollback can become untrustworthy when visible lines disappear, get overwritten, truncate mid-stream, duplicate, misalign, or become inaccessible even though raw logs, transaction views, or transcripts still contain the missing content.
102
+
103
+ Common signals include Windows Terminal scrollback losing older output, PowerShell/WSL/tmux/Zellij/Ghostty rendering differences, `missing_count`, `missing_examples`, `S-0391`, `tmux_scrollback_repro.sh`, `line_truncation_repro.md`, `vt100_history.rs`, scrolling during streaming output cutting content, approval/planner scrollback snapping back to the bottom, and Ctrl+T transcript mode failing to recover previous output.
104
+
105
+ The fix is to capture Codex CLI/app/extension version, OS, shell, terminal emulator and version, WSL/SSH/tmux/Zellij state, model, whether streaming was active, exact scroll action, viewport snap behavior, first missing or duplicated line id, raw log/transcript/transaction evidence showing the line still exists, terminal capture such as `tmux capture-pane` or a screenshot/video, numbered-line harness output, control run without Codex-specific rendering, terminal dimensions and scrollback settings, `/resume` or transcript recovery behavior, and whether downgrade or another terminal changes the result.
106
+
107
+ ## Codex Subagent Lifecycle
108
+
109
+ Codex subagents can diverge across the Desktop UI, live close/readback routes, persisted SQLite spawn edges, recent-conversation listing, and active spawn quota. The result is a session where users cannot tell whether a helper is active, closed, stale, consuming a slot, or merely rendered from old cache.
110
+
111
+ Common signals include completed or closed subagent cards staying visible, `Show 67 more` or 100+ stale subagent entries, `close_agent` returning `shutdown`, `completed`, `not_found`, or `pending_init` while the panel still lists the agent, `thread_spawn_edges` rows stuck `open`, `state_5.sqlite` showing stale child threads, `collab spawn failed: agent thread limit reached`, child subagent threads appearing as top-level recent conversations, compaction losing prior subagent IDs, and the parent forking the main session when it should resume an unbiased reviewer.
112
+
113
+ The fix is to capture Codex app/CLI/extension version, OS, surface, model, subscription/workspace, root thread id, subagent ids/nicknames/roles, spawn/close/list commands or UI actions, `close_agent` results, `list_agents` or `/agents` output, `thread_spawn_edges` status counts, registry or `agents.max_threads` evidence, recent-list/sidebar behavior, whether child threads are archived or shown top-level, last-progress or halt reason, MCP server state for subagents, compaction/resume timing, redacted screenshot or UI state, whether restart/reload/new thread clears it, and whether stale agents are UI-only or still block new spawns.
114
+
99
115
  ## Codex MCP Runtime
100
116
 
101
117
  Codex MCP tools can be configured and discoverable but still fail at runtime. Common causes include non-interactive approval paths cancelling the call, elicitation not being supported in exec mode, deferred discovery replaying a call without namespace or `serverName`, routed callable names such as `mcp__node_repl__js` becoming unsupported, or stdio transports closing before a second tool call.
@@ -3,18 +3,18 @@
3
3
  | Field | Value |
4
4
  | --- | --- |
5
5
  | Repository | https://github.com/grnbtqdbyx-create/trace-to-skill |
6
- | Package | trace-to-skill@0.1.64 |
6
+ | Package | trace-to-skill@0.1.66 |
7
7
  | License | Apache-2.0 |
8
8
  | Codex readiness | ready (100/100) |
9
- | Benchmark | pass, 31 cases |
9
+ | Benchmark | pass, 33 cases |
10
10
 
11
11
  ## Why This Repository Qualifies
12
12
 
13
- trace-to-skill helps open-source maintainers adopt Codex safely by turning failed coding-agent runs into evidence-backed rules, reusable workflows, and CI gates. It supports real maintenance work: PR review, issue triage, release quality, MCP risk, prompt-injection defense, privacy-preserving trace sharing, and repeat failure reduction. The repository is ready, scores 100/100 on the local Codex readiness doctor, and ships a deterministic benchmark with 31 public fixture cases.
13
+ trace-to-skill helps open-source maintainers adopt Codex safely by turning failed coding-agent runs into evidence-backed rules, reusable workflows, and CI gates. It supports real maintenance work: PR review, issue triage, release quality, MCP risk, prompt-injection defense, privacy-preserving trace sharing, and repeat failure reduction. The repository is ready, scores 100/100 on the local Codex readiness doctor, and ships a deterministic benchmark with 33 public fixture cases.
14
14
 
15
15
  ### 500-Character Version
16
16
 
17
- > trace-to-skill helps open-source maintainers adopt Codex safely by turning failed coding-agent runs into evidence-backed rules, reusable workflows, and CI gates. It supports real maintenance work: PR review, issue triage, release quality, MCP risk, prompt-injection defense, privacy-preserving trace sharing, and repeat failure reduction. The repository is ready, scores 100/100 on the local Codex readiness doctor, and ships a deterministic benchmark with 31 public fixture cases.
17
+ > trace-to-skill helps open-source maintainers adopt Codex safely by turning failed coding-agent runs into evidence-backed rules, reusable workflows, and CI gates. It supports real maintenance work: PR review, issue triage, release quality, MCP risk, prompt-injection defense, privacy-preserving trace sharing, and repeat failure reduction. The repository is ready, scores 100/100 on the local Codex readiness doctor, and ships a deterministic benchmark with 33 public fixture cases.
18
18
 
19
19
  ## How API Credits Would Be Used
20
20
 
@@ -27,10 +27,10 @@ API credits would power optional maintainer workflows on top of the local determ
27
27
  ## Evidence
28
28
 
29
29
  - Public repository: https://github.com/grnbtqdbyx-create/trace-to-skill
30
- - One-command package: npx trace-to-skill@0.1.64
30
+ - One-command package: npx trace-to-skill@0.1.66
31
31
  - Open-source license: Apache-2.0
32
32
  - Codex readiness doctor: ready, 100/100, 0 failed checks.
33
- - Public fixture benchmark: pass, 31 cases.
33
+ - Public fixture benchmark: pass, 33 cases.
34
34
  - Maintainer control: generated rules are suggestions, evidence is line-linked, and secrets can be redacted before sharing.
35
35
 
36
36
  ## Next Steps Before Submitting
package/docs/SCORECARD.md CHANGED
@@ -9,7 +9,7 @@ Status: **pass**
9
9
  | Failed doctor checks | 0 |
10
10
  | Critical findings | 0 |
11
11
  | Built-in benchmark | pass |
12
- | Benchmark cases | 31 |
12
+ | Benchmark cases | 33 |
13
13
 
14
14
  ## Doctor Summary
15
15
 
@@ -39,6 +39,8 @@ This benchmark runs the public fixture pack that ships with the repository and p
39
39
  | Codex Windows helper and bundled tool path failure | `fixtures/codex-windows-helper-path.md` | 43 | 4 | 0 | `codex_plugin_runtime`, `codex_windows_helper_path`, `sandbox_permission`, `weak_evidence` | pass |
40
40
  | Codex auth and connectivity failure | `fixtures/codex-connectivity.md` | 75 | 2 | 0 | `codex_connectivity`, `weak_evidence` | pass |
41
41
  | Codex remote-control route health failure | `fixtures/codex-remote-control.md` | 75 | 2 | 0 | `codex_remote_control`, `weak_evidence` | pass |
42
+ | Codex terminal output and scrollback integrity failure | `fixtures/codex-terminal-output-integrity.md` | 75 | 2 | 0 | `codex_terminal_output_integrity`, `weak_evidence` | pass |
43
+ | Codex subagent lifecycle and state reconciliation failure | `fixtures/codex-subagent-lifecycle.md` | 75 | 2 | 0 | `codex_subagent_lifecycle`, `weak_evidence` | pass |
42
44
  | Codex quota mismatch | `fixtures/quota-mismatch.md` | 59 | 3 | 0 | `codex_usage_reset_drift`, `quota_mismatch`, `weak_evidence` | pass |
43
45
  | MCP config with secret exposure | `fixtures/mcp-risk.json` | 59 | 2 | 1 | `mcp_risk`, `secret_exposure` | pass |
44
46
  | Sensitive file access in agent context | `fixtures/sensitive-file-access.md` | 75 | 2 | 0 | `sensitive_file_access`, `weak_evidence` | pass |
@@ -49,7 +51,7 @@ This benchmark runs the public fixture pack that ships with the repository and p
49
51
  | Codex session resume and state failure | `fixtures/codex-session-state.md` | 59 | 3 | 0 | `codex_resource_leak`, `codex_session_state`, `weak_evidence` | pass |
50
52
  | Codex token burn and usage-drain loop | `fixtures/codex-token-burn.md` | 59 | 3 | 0 | `codex_resource_leak`, `codex_token_burn`, `weak_evidence` | pass |
51
53
  | Codex resource leak and runaway process | `fixtures/codex-resource-leak.md` | 75 | 2 | 0 | `codex_resource_leak`, `weak_evidence` | pass |
52
- | Codex tool-call integrity and rollback failure | `fixtures/codex-tool-call-integrity.md` | 59 | 3 | 0 | `codex_resource_leak`, `codex_tool_call_integrity`, `weak_evidence` | pass |
54
+ | Codex tool-call integrity and rollback failure | `fixtures/codex-tool-call-integrity.md` | 43 | 4 | 0 | `codex_resource_leak`, `codex_subagent_lifecycle`, `codex_tool_call_integrity`, `weak_evidence` | pass |
53
55
  | Codex apply_patch Add File overwrite safety | `fixtures/codex-apply-patch-overwrite.md` | 75 | 2 | 0 | `codex_tool_call_integrity`, `weak_evidence` | pass |
54
56
  | Codex usage reset schedule drift | `fixtures/codex-usage-reset-drift.md` | 75 | 2 | 0 | `codex_usage_reset_drift`, `weak_evidence` | pass |
55
57
  | Untrusted PR comment prompt injection | `fixtures/prompt-injection.md` | 50 | 3 | 1 | `premature_completion`, `prompt_injection`, `weak_evidence` | pass |
package/docs/USE_CASES.md CHANGED
@@ -18,13 +18,15 @@ npx trace-to-skill demo clipboard-attachment
18
18
  npx trace-to-skill demo deeplink-launch
19
19
  npx trace-to-skill demo connector-auth-cache
20
20
  npx trace-to-skill demo mcp-discovery-mismatch
21
+ npx trace-to-skill demo terminal-output-integrity
22
+ npx trace-to-skill demo subagent-lifecycle
21
23
  ```
22
24
 
23
25
  What it proves:
24
26
 
25
27
  - packaged fixtures can produce a real Codex issue report immediately
26
28
  - maintainers can inspect the output shape before sharing any private log
27
- - demos cover remote compact failures, Windows helper path failures, patch overwrite safety, approval friction, latency, Thinking hangs, clipboard/attachment regressions, deeplink/OAuth launch regressions, connector auth-cache regressions, MCP discovery/config-scope mismatches, token burn, sensitive files, and prompt injection
29
+ - demos cover remote compact failures, Windows helper path failures, patch overwrite safety, approval friction, latency, Thinking hangs, clipboard/attachment regressions, deeplink/OAuth launch regressions, connector auth-cache regressions, MCP discovery/config-scope mismatches, terminal output/scrollback integrity, subagent lifecycle drift, token burn, sensitive files, and prompt injection
28
30
 
29
31
  See the generated demo output in [docs/DEMO.md](DEMO.md).
30
32
 
@@ -47,7 +49,7 @@ What it proves:
47
49
  Recommended CI surface:
48
50
 
49
51
  ```yaml
50
- - uses: grnbtqdbyx-create/trace-to-skill@v0.1.64
52
+ - uses: grnbtqdbyx-create/trace-to-skill@v0.1.66
51
53
  with:
52
54
  mode: all
53
55
  doctor-threshold: "85"
@@ -147,7 +149,35 @@ npx trace-to-skill analyze ./runs --format json
147
149
 
148
150
  This catches signals such as `Waiting for desktop`, `Directory: Unavailable`, stale `server_name` enrollment, stale remote-control listener, `127.0.0.1:14567`, missing cached helper files such as `codex-windows-sandbox-setup.exe` or `codex-command-runner.exe`, empty backend environments, stale Android session lists, and temporary recovery after re-pairing or listener restart.
149
151
 
150
- ## 10. Codex MCP Runtime Triage
152
+ ## 10. Codex Terminal Output And Scrollback Integrity
153
+
154
+ Use this when Codex terminal output, streamed assistant text, or scrollback becomes untrustworthy even though raw logs, transcripts, or transaction views still contain the missing lines.
155
+
156
+ ```bash
157
+ npx trace-to-skill demo terminal-output-integrity
158
+ npx trace-to-skill analyze ./runs --format json
159
+ npx trace-to-skill codex-report ./runs --output openai-codex-terminal-output.md
160
+ ```
161
+
162
+ This catches signals such as Windows Terminal scrollback lines disappearing, streamed output overwriting older visible transcript lines, numbered-line harness output with `missing_count`, `S-0391`, or `missing_examples`, `tmux_scrollback_repro.sh`, viewport snaps to the bottom during planner/approval flows, and transcript mode failing to recover earlier output.
163
+
164
+ Include the Codex CLI/app/extension version, OS, shell, terminal emulator and version, WSL/SSH/tmux/Zellij state, model, whether streaming was active, exact scroll action, terminal dimensions and scrollback settings, first missing or duplicated line id, raw log/transcript proof, terminal capture, numbered-line harness output, control run, `/resume` or transcript recovery behavior, and whether another terminal or downgrade changes the result.
165
+
166
+ ## 11. Codex Subagent Lifecycle And State Reconciliation
167
+
168
+ Use this when subagents appear completed, closed, stale, or interrupted but Codex cannot reconcile UI state, live handles, persisted spawn edges, parent discoverability, and active spawn quota.
169
+
170
+ ```bash
171
+ npx trace-to-skill demo subagent-lifecycle
172
+ npx trace-to-skill analyze ./runs --format json
173
+ npx trace-to-skill codex-report ./runs --output openai-codex-subagents.md
174
+ ```
175
+
176
+ This catches signals such as completed subagents remaining visible in the Subagents panel, `close_agent` returning `not_found` or hanging, `thread_spawn_edges` rows staying open, `agent thread limit reached`, child subagent threads showing as top-level recent conversations, and compaction losing the prior subagent id so the parent forks the main session instead of resuming an unbiased reviewer.
177
+
178
+ Include Codex app/CLI/extension version, OS, surface, model, subscription/workspace, root thread id, subagent ids/nicknames/roles, spawn/close/list commands, `close_agent` results, `list_agents` or `/agents` output, `thread_spawn_edges` status counts, `agents.max_threads` or registry quota evidence, recent-list/sidebar behavior, child-thread archive/top-level status, last-progress or halt reason, MCP server state, compaction/resume timing, redacted UI evidence, restart/reload behavior, and whether stale agents are UI-only or still block spawns.
179
+
180
+ ## 12. Codex MCP Runtime Triage
151
181
 
152
182
  Use this when MCP tools are configured and visible, but Codex cannot actually call them at runtime.
153
183
 
@@ -158,7 +188,7 @@ npx trace-to-skill config-audit ~/.codex --format json
158
188
 
159
189
  This catches signals such as `user cancelled MCP tool call`, `request_user_input is not supported in exec mode`, `Approve app tool call?`, `tool_call_mcp_elicitation`, routed callable names like `mcp__node_repl__js` becoming `unsupported call`, deferred discovery dropping namespace or `serverName`, `tools/list` succeeding while Codex routing fails, and stdio transport lifecycle failures such as `Transport closed`, `stdin_end`, `stdin_close`, `transport_close`, or stderr backpressure.
160
190
 
161
- ## 10. Codex Resume And Session State Triage
191
+ ## 13. Codex Resume And Session State Triage
162
192
 
163
193
  Use this when long Codex sessions become difficult to resume, Desktop history rendering gets sluggish, or local state migrations break goals/projects/history.
164
194
 
@@ -175,7 +205,7 @@ This catches signals such as `codex resume` picker hangs, `codex resume <id>` wo
175
205
 
176
206
  For mixed resume, crash, config, plugin, or history issues, `diagnostics-bundle` writes the session, config, and plugin reports together with a checklist of files not to attach publicly.
177
207
 
178
- ## 11. Codex File Tree UI Evidence
208
+ ## 14. Codex File Tree UI Evidence
179
209
 
180
210
  Use this when Codex Desktop cannot reveal project files through the native file tree, folder icon, floating file panel, or built-in preview.
181
211
 
@@ -186,7 +216,7 @@ npx trace-to-skill codex-report ./runs --output openai-codex-issue.md
186
216
 
187
217
  This catches signals such as `View > Toggle File Tree` doing nothing, `Cmd+Shift+E` or `Ctrl+Shift+E` having no visible effect, the folder icon disappearing, the floating file panel showing stale or unclickable entries after add/rename/delete operations, and `.doc`, `.pdf`, or `.ppt` previews failing until restart.
188
218
 
189
- ## 12. Codex Token Burn Attribution
219
+ ## 15. Codex Token Burn Attribution
190
220
 
191
221
  Use this when Codex usage drains faster than expected and the trace needs to separate useful model work from orchestration overhead.
192
222
 
@@ -197,7 +227,7 @@ npx trace-to-skill codex-report ./runs --output openai-codex-issue.md
197
227
 
198
228
  This catches signals such as tokens `burning very fast`, usage dropping by visible percentages after one or two prompts, weekly allowance depletion, 5-hour usage reaching 0%, large `input` plus `cached input` totals, `write_stdin` empty polling, background commands repeatedly reporting no new output, idle app usage, compaction tax, retry/tool loops, and missing attribution between normal turns, compaction, background polling, subagents, and retries.
199
229
 
200
- ## 13. Usage Reset Drift Evidence
230
+ ## 16. Usage Reset Drift Evidence
201
231
 
202
232
  Use this when Codex reset timing changes unexpectedly or users lose the ability to plan paid usage.
203
233
 
@@ -208,7 +238,7 @@ npx trace-to-skill codex-report ./runs --output openai-codex-issue.md
208
238
 
209
239
  This catches signals such as weekly reset dates moving from one date to another, `reset_at` jumping after the first prompt, saved weekly usage being wiped or pushed into the next window, outage compensation resets changing the anchor, `/status` and dashboard disagreement, and requests for deterministic reset schedules or rollover of unused prior-window usage.
210
240
 
211
- ## 14. Quota And Usage-Limit Evidence
241
+ ## 17. Quota And Usage-Limit Evidence
212
242
 
213
243
  Use this when Codex blocks a prompt with a usage-limit message but another surface still shows remaining quota.
214
244
 
@@ -218,7 +248,7 @@ npx trace-to-skill analyze ./runs --format json
218
248
 
219
249
  This catches traces where `/status` or the usage page shows remaining 5h or weekly quota, accounts appear to share limits unexpectedly, a Team account inherits a Plus account's limit state, or quota reset times jump after logout/login.
220
250
 
221
- ## 15. Codex Resource Leak Evidence
251
+ ## 18. Codex Resource Leak Evidence
222
252
 
223
253
  Use this when Codex Desktop, the VS Code extension, renderer, app-server, GPU process, shell snapshot, or helper process keeps burning local resources after the useful work should be idle.
224
254
 
@@ -231,7 +261,7 @@ This catches signals such as high `Code Helper (Renderer)` or `Code Helper (Plug
231
261
 
232
262
  Include process names/PIDs, CPU/GPU/RSS samples over time, log-loop snippets, workspace Git-root state, animation/reduce-motion state, and whether closing the panel/app, killing exact PIDs, `git init`, rollback, or restart clears the leak.
233
263
 
234
- ## 16. Codex Thinking Hang Evidence
264
+ ## 19. Codex Thinking Hang Evidence
235
265
 
236
266
  Use this when Codex accepts a prompt, finishes a local tool call, or keeps a Responses stream open but the UI/CLI remains on Thinking or Working with no visible assistant follow-up.
237
267
 
@@ -245,7 +275,7 @@ This catches signals such as `turn/start`, `task_started`, a completed local too
245
275
 
246
276
  Include the Codex version, OS, model and reasoning/speed settings, turn or thread id, prompt timestamp, last successful tool output, first `response_item` timestamp, `responses_http` or websocket transport evidence, `time.busy` / `time.idle`, MCP/subagent state, stop/interrupt behavior, and whether a new thread or minimal config recovers.
247
277
 
248
- ## 17. Codex Clipboard And Pasted-Text Attachment Evidence
278
+ ## 20. Codex Clipboard And Pasted-Text Attachment Evidence
249
279
 
250
280
  Use this when copy/export, long pasted prompts, or generated `Pasted text.txt` attachments break Codex prompt, `/goal`, or support-report workflows.
251
281
 
@@ -259,7 +289,7 @@ This catches signals such as `Copy as Markdown` disappearing from the Copy menu,
259
289
 
260
290
  Include app version, OS, surface, exact copy menu items, source text size, paste action, visible editor text, generated attachment name/path/size, `pasted-text-attachments.json` or fileAttachments metadata, command path such as `/goal`, preview/edit/revert actions tried, clipboard payload format, and whether paste-as-text, opt-out, explicit file reference, or downgrade changes behavior.
261
291
 
262
- ## 18. Codex Deeplink And External Launch Evidence
292
+ ## 21. Codex Deeplink And External Launch Evidence
263
293
 
264
294
  Use this when OAuth callbacks, notification clicks, browser extension activation, mobile pairing, or CLI app-open commands fail to route back into Codex.
265
295
 
@@ -273,7 +303,7 @@ This catches signals such as `codex://oauth_callback?code=...` opening an Electr
273
303
 
274
304
  Include app/CLI/extension version, OS/build, install source, package id/path, affected surface, exact redacted URI shape, browser and connector/plugin name, error dialog text, whether the app was already running, AppX/MSIX evidence such as AppUserModelID and DelegateExecute, HKCU/HKCR `codex` keys, command-line arguments, repair/reinstall/re-register attempts, and whether manual `codex://test` or `Start-Process` reproduces.
275
305
 
276
- ## 19. Codex App Connector Auth Cache Evidence
306
+ ## 22. Codex App Connector Auth Cache Evidence
277
307
 
278
308
  Use this when Codex app connectors appear installed but keep stale auth or discovery metadata after a reauth-required response.
279
309
 
@@ -287,7 +317,7 @@ This catches signals such as `401: "Server returned 401: 'Reauthentication requi
287
317
 
288
318
  Include app/CLI version, OS, connector/plugin name and id, installed plugin root, exact tool name, redacted `codex_apps_tools` and `codex_app_directory` metadata, `link_*` id before/after reconnect, `isAccessible` state, restart/remove/re-add/cache-clear/sign-in attempts, ChatGPT app page state, and whether an external MCP workaround succeeds.
289
319
 
290
- ## 20. Codex MCP Discovery And Config Scope Evidence
320
+ ## 23. Codex MCP Discovery And Config Scope Evidence
291
321
 
292
322
  Use this when MCP servers work in Codex CLI or one config scope but are missing in VS Code, Desktop, WSL, remote sessions, project-local config, or an older conversation.
293
323
 
@@ -301,7 +331,7 @@ This catches signals such as `MCP servers not detected in Codex VS Code extensio
301
331
 
302
332
  Include app/CLI/extension version, OS, IDE, remote/WSL/SSH state, workspace root, effective `CODEX_HOME`, all config files considered (`~/.codex/config.toml`, project `.codex/config.toml`, `.vscode/mcp.json`, `.mcp.json`), redacted MCP sections, trust/profile/default-permissions state, `codex mcp list`, `codex mcp get <server>`, CLI-versus-Desktop/VS Code comparison, loaded config path/log lines, whether moving the same server to user-global config fixes it, and whether the current session exposes `mcp__*` tools.
303
333
 
304
- ## 21. Patch Overwrite Guard
334
+ ## 24. Patch Overwrite Guard
305
335
 
306
336
  Use this before applying a generated patch when you want create/update/delete semantics checked against the actual workspace.
307
337
 
@@ -318,7 +348,7 @@ For a public demo report:
318
348
  npx trace-to-skill demo patch-overwrite
319
349
  ```
320
350
 
321
- ## 22. OpenAI Codex Issue Report
351
+ ## 25. OpenAI Codex Issue Report
322
352
 
323
353
  Use this when you want to file or update an OpenAI/Codex issue with a concise, evidence-backed report instead of pasting a full transcript.
324
354
 
@@ -331,7 +361,7 @@ The report includes the likely Codex failure class, line-linked evidence, diagno
331
361
 
332
362
  For a cluster-to-command map of current Codex issue patterns, see [CODEX_ISSUE_MAP.md](CODEX_ISSUE_MAP.md).
333
363
 
334
- ## 23. Sensitive File Access Evidence
364
+ ## 26. Sensitive File Access Evidence
335
365
 
336
366
  Use this when a trace suggests an agent read, attached, uploaded, diffed, or indexed credential-bearing files.
337
367
 
@@ -344,7 +374,7 @@ This catches signals such as `.env`, `.env.production`, `.npmrc`, `.pypirc`, `.n
344
374
 
345
375
  Before publishing evidence, run `trace-to-skill redact` and attach only redacted excerpts plus the file path/class.
346
376
 
347
- ## 24. GitHub Context Guard
377
+ ## 27. GitHub Context Guard
348
378
 
349
379
  Use this before an agent reads untrusted GitHub text.
350
380
 
@@ -361,7 +391,7 @@ Use it when:
361
391
  - a bot asks Codex to triage untrusted user reports
362
392
  - logs or comments might contain instructions like "ignore previous instructions" or "print secrets"
363
393
 
364
- ## 25. Failed Agent Run To Reviewable Rule
394
+ ## 28. Failed Agent Run To Reviewable Rule
365
395
 
366
396
  Use this when a coding agent made a repeated workflow mistake.
367
397
 
@@ -379,7 +409,7 @@ Recommended maintainer loop:
379
409
  4. Copy only evidence-backed rules into the real policy file.
380
410
  5. Run `eval` or `scorecard` in CI so the same failure does not silently return.
381
411
 
382
- ## 26. Privacy-Preserving Adoption
412
+ ## 29. Privacy-Preserving Adoption
383
413
 
384
414
  Use this when you want public evidence without leaking private traces.
385
415
 
@@ -0,0 +1,133 @@
1
+ # Codex subagent lifecycle fixture
2
+
3
+ This fixture uses public, token-free examples of Codex subagent lifecycle state diverging between the UI, live close/readback routes, persisted SQLite spawn edges, recent conversations, and quota accounting.
4
+
5
+ ## Stale subagents in Desktop UI
6
+
7
+ Environment:
8
+
9
+ - Codex Desktop 26.527.31326 and related app builds
10
+ - Long-running macOS or Linux sessions with many helper subagents
11
+ - Subagent roles such as researcher, planner, reviewer, coder, and verifier
12
+
13
+ Observed behavior:
14
+
15
+ ```text
16
+ Completed or closed subagents remain visible in the Subagents panel.
17
+ The app shows stale subagent cards after close/readback reports no live agent handle.
18
+ The visible subagent count grows very large; the panel can show Show 67 more or 100+ stale entries.
19
+ Some close attempts return shutdown, completed, not_found, or pending_init, but the UI still lists the agent.
20
+ It is unclear which subagents are active versus stale UI/cache entries.
21
+ ```
22
+
23
+ Local state evidence:
24
+
25
+ ```text
26
+ SQLite integrity check: ok
27
+ thread_spawn_edges status count: closed=549, open=0
28
+ After restarting Codex Desktop multiple times, the Subagents panel still visually shows stale subagent cards.
29
+ ```
30
+
31
+ ## Stale workers poison goal mode
32
+
33
+ Runtime report:
34
+
35
+ ```text
36
+ Codex subagents have been going stale and refusing to close for the past week.
37
+ One stale agent can halt the entire /goal mode.
38
+ Attempting to close it again can make the whole session stuck again.
39
+ Typically, if 1 agent goes stale and is unable to get closed, more will follow over upcoming hours.
40
+ The issue is reset by quitting and starting Codex again, where the 5 agents quota is back.
41
+ ```
42
+
43
+ Related MCP state:
44
+
45
+ ```text
46
+ MCP startup interrupted. The following servers were not initialized: codex_apps
47
+ Long sessions with stale subagents may hold MCP connections or leave connection lifecycle state unclear.
48
+ ```
49
+
50
+ ## Completed agents still consume spawn quota
51
+
52
+ Reproduction pattern:
53
+
54
+ ```text
55
+ Set a low agents.max_threads value.
56
+ Spawn a subagent and drive it to TurnComplete.
57
+ Attempt to spawn another agent.
58
+ The next spawn fails with collab spawn failed: agent thread limit reached.
59
+ Completed subagents continue to count against the per-session agent thread limit until explicitly closed.
60
+ ```
61
+
62
+ Expected:
63
+
64
+ ```text
65
+ Completed subagents should remain addressable for history/listing, but they should not consume active spawn quota unless restarted and reacquiring a slot.
66
+ ```
67
+
68
+ ## close_agent and durable state can diverge
69
+
70
+ Failure shape:
71
+
72
+ ```text
73
+ multi_agent_v1.close_agent can remain unresolved after marking a subagent closed.
74
+ The persistent thread_spawn_edges row already shows status=closed.
75
+ The child rollout ends with turn_aborted reason="interrupted".
76
+ The in-memory registry slot remains counted, so later spawn_agent calls fail with agent thread limit reached.
77
+ ```
78
+
79
+ Relevant code path names from the report:
80
+
81
+ ```text
82
+ codex-rs/core/src/tools/handlers/multi_agents/close_agent.rs
83
+ codex-rs/core/src/agent/control.rs
84
+ thread.wait_until_terminated().await
85
+ AgentRegistry.release_spawned_thread
86
+ ```
87
+
88
+ ## Child threads appear as top-level recent conversations
89
+
90
+ Local state summary:
91
+
92
+ ```text
93
+ Total threads: 553
94
+ Unarchived threads: 114
95
+ Subagent child threads linked by thread_spawn_edges: 61
96
+ Unarchived subagent child threads: 51
97
+ Unarchived non-child threads: 63
98
+ thread_spawn_edges.status: 56 closed, 5 open
99
+ jobs, agent_jobs, and agent_job_items were empty
100
+ ```
101
+
102
+ Observed behavior:
103
+
104
+ ```text
105
+ Subagent child threads are returned by ordinary recent conversation listing.
106
+ Child threads consume global recent-list slots and make older parent/user conversations look missing from the sidebar.
107
+ Some spawn edges remain open even when there is no obvious active agent job or worker process.
108
+ ```
109
+
110
+ ## Compaction loses subagent discoverability
111
+
112
+ User flow:
113
+
114
+ ```text
115
+ A subagent completed an unbiased review.
116
+ The main thread compacted automatically.
117
+ The user asked the main agent to get back with that subagent for another review round.
118
+ The main agent created a new subagent instead and forked the main session with full conversation history.
119
+ It later explained: the original subagent id was not available in the compacted context.
120
+ It also said it cannot retrieve a list of prior spawned sessions and can only act on an agent id it already knows.
121
+ With the subagent id copied from /agents by the user, it can resume the subagent correctly.
122
+ ```
123
+
124
+ Why this matters:
125
+
126
+ ```text
127
+ Forking the main session defeats an unbiased review request because the reviewer inherits the parent agent's assumptions and the user's prior conversation.
128
+ Prior resumable subagents should be discoverable to the model or clearly unavailable with a structured reason.
129
+ ```
130
+
131
+ ## Evidence a good report should include
132
+
133
+ The report should include Codex app/CLI/extension version, OS, surface, model, subscription/workspace, root thread id, subagent ids/nicknames/roles, spawn/close/list commands or UI actions, `close_agent` results, `list_agents` or `/agents` output, `thread_spawn_edges` status counts, agent registry or `agents.max_threads` evidence, recent-list/sidebar behavior, whether child threads are archived or shown as top-level conversations, last-progress/heartbeat or halt reason, MCP server state for helper agents, resume timing, screenshot or redacted UI state, whether restart/reload/new thread clears it, and whether stale agents are UI-only or still block new spawns.
@@ -0,0 +1,80 @@
1
+ # Codex terminal output integrity fixture
2
+
3
+ This fixture uses public, token-free examples of Codex terminal output, scrollback, or transcript rendering losing evidence even when logs or transaction views still contain the missing lines.
4
+
5
+ ## Windows Terminal scrollback loss
6
+
7
+ Environment:
8
+
9
+ - Codex CLI 0.116.0 through 0.135.0 reports
10
+ - Windows Terminal with PowerShell or WSL
11
+ - Some reports also mention Ghostty, Zellij, tmux, and Linux terminals
12
+
13
+ Observed behavior:
14
+
15
+ ```text
16
+ Scrollback does not work correctly; older output disappears or cannot be accessed.
17
+ Output is sometimes overwritten or re-rendered incorrectly.
18
+ Text may appear duplicated or partially missing.
19
+ Scrolling during streaming output can cause content to be cut or misaligned.
20
+ The content only disappears from the UI; it is still present in Codex context and transaction/log view.
21
+ ```
22
+
23
+ ## Streaming output overwrites older visible transcript
24
+
25
+ Reproduction pattern:
26
+
27
+ ```text
28
+ Start Codex in PowerShell.
29
+ Ask for a response that streams for a while.
30
+ While the assistant is streaming a reply, use the mouse wheel to scroll upward.
31
+ Older visible lines start disappearing, being swallowed, shifted, or overwritten.
32
+ As more tokens arrive, a larger portion of the older visible transcript is affected.
33
+ ```
34
+
35
+ Expected:
36
+
37
+ ```text
38
+ Once I scroll up to inspect previous history, new streaming output should not progressively overwrite the older visible lines I am currently looking at.
39
+ ```
40
+
41
+ ## Deterministic missing-line harness
42
+
43
+ A repro harness emitted numbered stream lines with a Codex-like history insertion escape pattern:
44
+
45
+ ```text
46
+ ./repro/tmux_scrollback_repro.sh
47
+ capture_file=/tmp/codex-scroll-repro/capture.txt
48
+ missing_file=/tmp/codex-scroll-repro/missing.txt
49
+ missing_count=1
50
+ missing_examples:
51
+ S-0391
52
+ ```
53
+
54
+ The control run did not lose lines:
55
+
56
+ ```text
57
+ ./repro/tmux_scrollback_repro.sh --plain
58
+ missing_count=0
59
+ ```
60
+
61
+ Related artifacts included:
62
+
63
+ ```text
64
+ repro/tmux_scrollback_repro.sh
65
+ repro/line_truncation_repro.md
66
+ codex-rs/tui/tests/suite/vt100_history.rs
67
+ incremental_stream_history_keeps_all_numbered_lines
68
+ ```
69
+
70
+ ## Planner and approval scroll snap
71
+
72
+ ```text
73
+ In planner mode, after Codex prints a long plan and shows approval choices, scrolling up does not stay up.
74
+ The viewport snaps back to the bottom.
75
+ Earlier output becomes inaccessible in scrollback.
76
+ Ctrl+T transcript mode stopped working while waiting for approval.
77
+ I can no longer scroll up or copy the full response.
78
+ ```
79
+
80
+ The report should include Codex CLI/app/extension version, OS, shell, terminal emulator and version, remote/WSL/SSH/tmux/Zellij state, model, whether streaming was active, exact scroll action, whether the viewport snapped to bottom, first missing or duplicated line id, raw log/transcript/transaction evidence showing the line still exists, terminal capture such as `tmux capture-pane` or Windows Terminal screenshot/video, reproduction script or numbered-line harness output, control run without Codex-specific escape/history insertion, terminal dimensions and scrollback settings, whether `/resume` or transcript mode recovers the content, and whether downgrade or another terminal changes behavior.
package/llms.txt CHANGED
@@ -24,6 +24,8 @@ Runtime: Node.js 20+
24
24
  - Codex mobile and remote-control route health failures such as `Waiting for desktop`, `Directory Unavailable`, stale listeners on `127.0.0.1:14567`, stale `server_name` enrollment, empty backend environments, and incomplete helper bundles
25
25
  - Codex MCP runtime failures such as cancelled non-interactive approvals, `request_user_input is not supported in exec mode`, dropped namespace or `serverName` metadata, `unsupported call: mcp__...__...`, and closed `StdioServerTransport` sessions
26
26
  - Codex MCP discovery and config-scope mismatches where CLI `/mcp` works but VS Code, Desktop, WSL, project `.codex/config.toml`, `CODEX_HOME`, or an older conversation exposes no `mcp__*` tools
27
+ - Codex terminal output and scrollback integrity failures where streamed lines disappear, get overwritten, truncate, duplicate, misalign, snap to the bottom, or only survive in raw logs/transcripts
28
+ - Codex subagent lifecycle failures where completed or closed agents remain visible, `thread_spawn_edges` drift, child threads crowd the recent list, `agent thread limit reached` blocks spawns, or compaction loses prior subagent IDs
27
29
  - Codex resume and session-state failures such as frozen resume pickers, large rollout JSONL histories, short `session_index.jsonl`, sluggish Desktop thread rendering, dropped recent context after resume, archived chat loading failures, and `state_5.sqlite` / `goals_1.sqlite` migration drift
28
30
  - Codex file tree and workspace navigation UI failures such as `View > Toggle File Tree` doing nothing, missing folder icons, stale floating file panels, and built-in preview failures
29
31
  - Codex Thinking or Working hangs after accepted turns, successful local tools, or open Responses streams with no streamed assistant follow-up
@@ -74,6 +76,8 @@ npx trace-to-skill demo clipboard-attachment
74
76
  npx trace-to-skill demo deeplink-launch
75
77
  npx trace-to-skill demo connector-auth-cache
76
78
  npx trace-to-skill demo mcp-discovery-mismatch
79
+ npx trace-to-skill demo terminal-output-integrity
80
+ npx trace-to-skill demo subagent-lifecycle
77
81
  npx trace-to-skill lint-agents .
78
82
  npx trace-to-skill guard-github-event "$GITHUB_EVENT_PATH"
79
83
  npx trace-to-skill guard-patch ./change.patch --root .
@@ -95,7 +99,7 @@ npx trace-to-skill init --comment --sarif
95
99
  ## GitHub Action
96
100
 
97
101
  ```yaml
98
- - uses: grnbtqdbyx-create/trace-to-skill@v0.1.64
102
+ - uses: grnbtqdbyx-create/trace-to-skill@v0.1.66
99
103
  with:
100
104
  mode: all
101
105
  doctor-threshold: "85"
@@ -123,6 +127,8 @@ npx trace-to-skill init --comment --sarif
123
127
 
124
128
  - Codex readiness checker for open-source repositories
125
129
  - Codex issue report demo without private traces
130
+ - Codex terminal scrollback output integrity report
131
+ - Codex subagent lifecycle state reconciliation report
126
132
  - AGENTS.md linter for Codex and Claude Code
127
133
  - turn failed agent runs into AGENTS.md rules
128
134
  - prompt injection guard for GitHub issue and PR comments
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trace-to-skill",
3
- "version": "0.1.64",
3
+ "version": "0.1.66",
4
4
  "description": "Turn failed AI coding-agent runs into reusable AGENTS.md rules, SKILL.md files, and eval evidence.",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
@@ -103,6 +103,12 @@
103
103
  "token-exchange-failed",
104
104
  "codex-remote-control",
105
105
  "codex-mobile",
106
+ "codex-terminal",
107
+ "codex-scrollback",
108
+ "terminal-output",
109
+ "codex-subagent",
110
+ "codex-subagents",
111
+ "subagent-lifecycle",
106
112
  "codex-mcp",
107
113
  "codex-mcp-discovery",
108
114
  "mcp-config",
@@ -81,6 +81,8 @@
81
81
  "codex_windows_helper_path",
82
82
  "codex_connectivity",
83
83
  "codex_remote_control",
84
+ "codex_terminal_output_integrity",
85
+ "codex_subagent_lifecycle",
84
86
  "codex_mcp_discovery_mismatch",
85
87
  "codex_mcp_runtime",
86
88
  "codex_plugin_runtime",