trace-to-skill 0.1.64 → 0.1.65

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,7 @@ 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.
74
75
  - **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
76
  - **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
77
  - **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 +123,7 @@ Open-source maintainers do not need more AI-generated noise. They need agents th
122
123
  - Did `codex://` OAuth callbacks, notification clicks, browser-extension launches, mobile pairing links, or `codex app <path>` fail to open the right Codex route?
123
124
  - Did a Codex app connector keep stale `link_*` or `isAccessible: false` metadata after `401 Reauthentication required`, restart, plugin reinstall, or cache regeneration?
124
125
  - 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?
126
+ - Did Codex terminal scrollback, streamed output, or transcript rendering drop, overwrite, truncate, duplicate, or hide evidence lines that still exist in raw logs?
125
127
  - Did repeated approval prompts make a safer scoped mode unusable or require huge per-tool MCP approval configs?
126
128
  - Can the failure be reported to OpenAI with line-linked evidence, redaction notes, and the exact diagnostics maintainers need?
127
129
  - Can we produce an application-ready OpenAI OSS brief from the repo's actual license, distribution, readiness, and benchmark state?
@@ -201,6 +203,7 @@ Trace analysis detects run-level failures:
201
203
  | Codex connectivity | Auth token exchange, proxy/CA, IPv6, Cloudflare challenge, or ChatGPT transport errors block Codex |
202
204
  | Codex remote control | Mobile or remote sessions route through stale listeners, stale enrollment, or incomplete helper bundles |
203
205
  | 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 |
206
+ | Codex terminal output integrity | Terminal scrollback, streamed output, or transcript rendering drops, overwrites, truncates, duplicates, or hides lines that raw logs still contain |
204
207
  | Codex MCP runtime | MCP tools are configured but approval, namespace routing, unsupported callable names, or stdio transport fail at runtime |
205
208
  | 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
209
  | 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 +250,7 @@ trace-to-skill demo clipboard-attachment
247
250
  trace-to-skill demo deeplink-launch
248
251
  trace-to-skill demo connector-auth-cache
249
252
  trace-to-skill demo mcp-discovery-mismatch
253
+ trace-to-skill demo terminal-output-integrity
250
254
  trace-to-skill demo patch-overwrite
251
255
  trace-to-skill guard-patch ./change.patch --root .
252
256
  trace-to-skill session-audit ~/.codex --format json
@@ -461,7 +465,7 @@ jobs:
461
465
  issues: write
462
466
  steps:
463
467
  - uses: actions/checkout@v5
464
- - uses: grnbtqdbyx-create/trace-to-skill@v0.1.64
468
+ - uses: grnbtqdbyx-create/trace-to-skill@v0.1.65
465
469
  with:
466
470
  mode: all
467
471
  doctor-threshold: "85"
@@ -510,7 +514,7 @@ Composite action usage:
510
514
 
511
515
  ```yaml
512
516
  - id: trace-to-skill
513
- uses: grnbtqdbyx-create/trace-to-skill@v0.1.64
517
+ uses: grnbtqdbyx-create/trace-to-skill@v0.1.65
514
518
  with:
515
519
  mode: all
516
520
  doctor-threshold: "85"
@@ -552,7 +556,7 @@ Action outputs:
552
556
 
553
557
  By default, generated reports are also appended to the GitHub Actions Job Summary. Set `job-summary: "false"` to disable that UI output.
554
558
 
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.
559
+ Tagged Action releases build and run the CLI from `$GITHUB_ACTION_PATH`, so a workflow pinned to a release tag such as `@v0.1.65` executes that release's checked-out source instead of pulling the default branch at runtime.
556
560
 
557
561
  ## Codex Skill
558
562
 
@@ -101,6 +101,12 @@ 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
+ },
104
110
  {
105
111
  id: "quota-mismatch",
106
112
  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;Q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C,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,12 @@ 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
+ },
60
66
  {
61
67
  id: "token-burn",
62
68
  title: "Codex token burn",
@@ -143,6 +149,7 @@ export function renderDemoMarkdown(result) {
143
149
  "trace-to-skill demo deeplink-launch",
144
150
  "trace-to-skill demo connector-auth-cache",
145
151
  "trace-to-skill demo mcp-discovery-mismatch",
152
+ "trace-to-skill demo terminal-output-integrity",
146
153
  "trace-to-skill demo file-tree-ui",
147
154
  "trace-to-skill demo usage-reset-drift",
148
155
  "```",
@@ -170,6 +177,7 @@ export function renderDemoScenarioList(scenarios = listDemoScenarios()) {
170
177
  "trace-to-skill demo deeplink-launch",
171
178
  "trace-to-skill demo connector-auth-cache",
172
179
  "trace-to-skill demo mcp-discovery-mismatch",
180
+ "trace-to-skill demo terminal-output-integrity",
173
181
  "trace-to-skill demo --list",
174
182
  "```",
175
183
  ""
@@ -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,gBAAgB;QACpB,KAAK,EAAE,mCAAmC;QAC1C,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EAAE,iHAAiH;KAC/H;IACD;QACE,EAAE,EAAE,qBAAqB;QACzB,KAAK,EAAE,mCAAmC;QAC1C,OAAO,EAAE,uCAAuC;QAChD,WAAW,EAAE,0HAA0H;KACxI;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,KAAK,EAAE,yBAAyB;QAChC,OAAO,EAAE,qCAAqC;QAC9C,WAAW,EAAE,mGAAmG;KACjH;IACD;QACE,EAAE,EAAE,oBAAoB;QACxB,KAAK,EAAE,0BAA0B;QACjC,OAAO,EAAE,sCAAsC;QAC/C,WAAW,EAAE,wFAAwF;KACtG;IACD;QACE,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,gCAAgC;QACvC,OAAO,EAAE,iCAAiC;QAC1C,WAAW,EAAE,yGAAyG;KACvH;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,KAAK,EAAE,uDAAuD;QAC9D,OAAO,EAAE,wCAAwC;QACjD,WAAW,EAAE,sHAAsH;KACpI;IACD;QACE,EAAE,EAAE,iBAAiB;QACrB,KAAK,EAAE,qDAAqD;QAC5D,OAAO,EAAE,mCAAmC;QAC5C,WAAW,EAAE,yHAAyH;KACvI;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,KAAK,EAAE,2CAA2C;QAClD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CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,OAAO,QAAQ,CAAC,EAAE,QAAQ,QAAQ,CAAC,WAAW,IAAI,CAAC;QAClF,EAAE;QACF,kBAAkB;QAClB,EAAE;QACF,SAAS;QACT,qBAAqB;QACrB,oCAAoC;QACpC,yCAAyC;QACzC,qCAAqC;QACrC,wCAAwC;QACxC,mCAAmC;QACnC,0CAA0C;QAC1C,qCAAqC;QACrC,0CAA0C;QAC1C,4CAA4C;QAC5C,+CAA+C;QAC/C,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,28 @@ 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
+ },
382
404
  {
383
405
  kind: "codex_mcp_discovery_mismatch",
384
406
  severity: "high",
@@ -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;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AAe,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_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,7 @@ 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 |
25
26
  | Codex quota mismatch | `fixtures/quota-mismatch.md` | 59 | 3 | 0 | `codex_usage_reset_drift`, `quota_mismatch`, `weak_evidence` | pass |
26
27
  | MCP config with secret exposure | `fixtures/mcp-risk.json` | 59 | 2 | 1 | `mcp_risk`, `secret_exposure` | pass |
27
28
  | Sensitive file access in agent context | `fixtures/sensitive-file-access.md` | 75 | 2 | 0 | `sensitive_file_access`, `weak_evidence` | pass |
@@ -31,6 +31,7 @@ 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` |
34
35
  | 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
36
  | 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
37
  | 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 +69,7 @@ npx trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics
68
69
  - 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
70
  - 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
71
  - 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.
72
+ - 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.
71
73
  - 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
74
  - Include `config-audit` output for Preferences/config, sandbox, model-pin, MCP approval, and plugin-cache reports.
73
75
  - 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 +91,7 @@ npx trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics
89
91
  - 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
92
  - App connector auth cache and stale link regressions: https://github.com/openai/codex/issues/24675, https://github.com/openai/codex/issues/25443
91
93
  - 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
94
+ - 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
92
95
  - 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
96
  - 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
97
  - 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 terminal output integrity**
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
+ Terminal scrollback, streamed output, or transcript rendering drops, overwrites, truncates, or makes lines inaccessible.
6
6
 
7
- Fixture: `fixtures/codex-mcp-discovery-mismatch.md`
7
+ Fixture: `fixtures/codex-terminal-output-integrity.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 terminal output or scrollback integrity failure (codex_terminal_output_integrity, 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 terminal output or scrollback integrity failure (codex_terminal_output_integrity). 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.
27
27
 
28
28
  ### Detected failure class
29
29
 
30
- - codex_mcp_discovery_mismatch: Codex MCP discovery or config-scope mismatch (high)
30
+ - codex_terminal_output_integrity: Codex terminal output or scrollback integrity 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 terminal output or scrollback integrity failure
35
+ - fixtures/codex-terminal-output-integrity.md: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.
36
+ - fixtures/codex-terminal-output-integrity.md:16 - Scrollback does not work correctly; older output disappears or cannot be accessed.
37
+ - fixtures/codex-terminal-output-integrity.md:17 - Output is sometimes overwritten or re-rendered incorrectly.
38
+ - fixtures/codex-terminal-output-integrity.md:19 - Scrolling during streaming output can cause content to be cut or misaligned.
39
+ - fixtures/codex-terminal-output-integrity.md:46 - ./repro/tmux_scrollback_repro.sh
40
+ - fixtures/codex-terminal-output-integrity.md:57 - ./repro/tmux_scrollback_repro.sh --plain
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 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.
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 terminal output or scrollback integrity 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 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.
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-terminal-output-integrity.md: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.
61
+ - `fixtures/codex-terminal-output-integrity.md:16` Scrollback does not work correctly; older output disappears or cannot be accessed.
62
+ - `fixtures/codex-terminal-output-integrity.md:17` Output is sometimes overwritten or re-rendered incorrectly.
63
+ - `fixtures/codex-terminal-output-integrity.md:19` Scrolling during streaming output can cause content to be cut or misaligned.
64
+ - `fixtures/codex-terminal-output-integrity.md:46` ./repro/tmux_scrollback_repro.sh
65
+ - `fixtures/codex-terminal-output-integrity.md:57` ./repro/tmux_scrollback_repro.sh --plain
66
+ - `fixtures/codex-terminal-output-integrity.md:64` repro/tmux_scrollback_repro.sh
67
+ - `fixtures/codex-terminal-output-integrity.md:65` repro/line_truncation_repro.md
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 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.
64
72
 
65
73
 
66
74
  ## Reporter Notes
@@ -81,6 +89,7 @@ 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.
84
93
  - `token-burn`: Usage drains from background polling, idle activity, compaction loops, retries, or cached-heavy turns.
85
94
  - `patch-overwrite`: `apply_patch` accepts `*** Add File` for an existing path, turning a create operation into a silent overwrite.
86
95
  - `sensitive-files`: Secrets, local credentials, production env files, or private databases enter agent context.
@@ -98,6 +107,7 @@ trace-to-skill demo clipboard-attachment
98
107
  trace-to-skill demo deeplink-launch
99
108
  trace-to-skill demo connector-auth-cache
100
109
  trace-to-skill demo mcp-discovery-mismatch
110
+ trace-to-skill demo terminal-output-integrity
101
111
  trace-to-skill demo file-tree-ui
102
112
  trace-to-skill demo usage-reset-drift
103
113
  ```
package/docs/DISCOVERY.md CHANGED
@@ -28,6 +28,7 @@ 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.
31
32
  - 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
33
  - 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
34
  - 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 +70,7 @@ npx trace-to-skill demo clipboard-attachment
69
70
  npx trace-to-skill demo deeplink-launch
70
71
  npx trace-to-skill demo connector-auth-cache
71
72
  npx trace-to-skill demo mcp-discovery-mismatch
73
+ npx trace-to-skill demo terminal-output-integrity
72
74
  npx trace-to-skill scorecard .
73
75
  npx trace-to-skill lint-agents .
74
76
  npx trace-to-skill guard-github-event "$GITHUB_EVENT_PATH"
@@ -120,7 +122,7 @@ npx trace-to-skill suggest ./runs --target agents-md
120
122
 
121
123
  ## Related Keywords
122
124
 
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.
125
+ 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 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.
124
126
 
125
127
  ## Non-Goals
126
128
 
@@ -96,6 +96,14 @@ 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
+
99
107
  ## Codex MCP Runtime
100
108
 
101
109
  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.65 |
7
7
  | License | Apache-2.0 |
8
8
  | Codex readiness | ready (100/100) |
9
- | Benchmark | pass, 31 cases |
9
+ | Benchmark | pass, 32 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 32 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 32 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.65
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, 32 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 | 32 |
13
13
 
14
14
  ## Doctor Summary
15
15
 
@@ -39,6 +39,7 @@ 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 |
42
43
  | Codex quota mismatch | `fixtures/quota-mismatch.md` | 59 | 3 | 0 | `codex_usage_reset_drift`, `quota_mismatch`, `weak_evidence` | pass |
43
44
  | MCP config with secret exposure | `fixtures/mcp-risk.json` | 59 | 2 | 1 | `mcp_risk`, `secret_exposure` | pass |
44
45
  | Sensitive file access in agent context | `fixtures/sensitive-file-access.md` | 75 | 2 | 0 | `sensitive_file_access`, `weak_evidence` | pass |
package/docs/USE_CASES.md CHANGED
@@ -18,13 +18,14 @@ 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
21
22
  ```
22
23
 
23
24
  What it proves:
24
25
 
25
26
  - packaged fixtures can produce a real Codex issue report immediately
26
27
  - 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
28
+ - 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, token burn, sensitive files, and prompt injection
28
29
 
29
30
  See the generated demo output in [docs/DEMO.md](DEMO.md).
30
31
 
@@ -47,7 +48,7 @@ What it proves:
47
48
  Recommended CI surface:
48
49
 
49
50
  ```yaml
50
- - uses: grnbtqdbyx-create/trace-to-skill@v0.1.64
51
+ - uses: grnbtqdbyx-create/trace-to-skill@v0.1.65
51
52
  with:
52
53
  mode: all
53
54
  doctor-threshold: "85"
@@ -147,7 +148,21 @@ npx trace-to-skill analyze ./runs --format json
147
148
 
148
149
  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
150
 
150
- ## 10. Codex MCP Runtime Triage
151
+ ## 10. Codex Terminal Output And Scrollback Integrity
152
+
153
+ 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.
154
+
155
+ ```bash
156
+ npx trace-to-skill demo terminal-output-integrity
157
+ npx trace-to-skill analyze ./runs --format json
158
+ npx trace-to-skill codex-report ./runs --output openai-codex-terminal-output.md
159
+ ```
160
+
161
+ 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.
162
+
163
+ 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.
164
+
165
+ ## 11. Codex MCP Runtime Triage
151
166
 
152
167
  Use this when MCP tools are configured and visible, but Codex cannot actually call them at runtime.
153
168
 
@@ -158,7 +173,7 @@ npx trace-to-skill config-audit ~/.codex --format json
158
173
 
159
174
  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
175
 
161
- ## 10. Codex Resume And Session State Triage
176
+ ## 12. Codex Resume And Session State Triage
162
177
 
163
178
  Use this when long Codex sessions become difficult to resume, Desktop history rendering gets sluggish, or local state migrations break goals/projects/history.
164
179
 
@@ -175,7 +190,7 @@ This catches signals such as `codex resume` picker hangs, `codex resume <id>` wo
175
190
 
176
191
  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
192
 
178
- ## 11. Codex File Tree UI Evidence
193
+ ## 13. Codex File Tree UI Evidence
179
194
 
180
195
  Use this when Codex Desktop cannot reveal project files through the native file tree, folder icon, floating file panel, or built-in preview.
181
196
 
@@ -186,7 +201,7 @@ npx trace-to-skill codex-report ./runs --output openai-codex-issue.md
186
201
 
187
202
  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
203
 
189
- ## 12. Codex Token Burn Attribution
204
+ ## 14. Codex Token Burn Attribution
190
205
 
191
206
  Use this when Codex usage drains faster than expected and the trace needs to separate useful model work from orchestration overhead.
192
207
 
@@ -197,7 +212,7 @@ npx trace-to-skill codex-report ./runs --output openai-codex-issue.md
197
212
 
198
213
  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
214
 
200
- ## 13. Usage Reset Drift Evidence
215
+ ## 15. Usage Reset Drift Evidence
201
216
 
202
217
  Use this when Codex reset timing changes unexpectedly or users lose the ability to plan paid usage.
203
218
 
@@ -208,7 +223,7 @@ npx trace-to-skill codex-report ./runs --output openai-codex-issue.md
208
223
 
209
224
  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
225
 
211
- ## 14. Quota And Usage-Limit Evidence
226
+ ## 16. Quota And Usage-Limit Evidence
212
227
 
213
228
  Use this when Codex blocks a prompt with a usage-limit message but another surface still shows remaining quota.
214
229
 
@@ -218,7 +233,7 @@ npx trace-to-skill analyze ./runs --format json
218
233
 
219
234
  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
235
 
221
- ## 15. Codex Resource Leak Evidence
236
+ ## 17. Codex Resource Leak Evidence
222
237
 
223
238
  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
239
 
@@ -231,7 +246,7 @@ This catches signals such as high `Code Helper (Renderer)` or `Code Helper (Plug
231
246
 
232
247
  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
248
 
234
- ## 16. Codex Thinking Hang Evidence
249
+ ## 18. Codex Thinking Hang Evidence
235
250
 
236
251
  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
252
 
@@ -245,7 +260,7 @@ This catches signals such as `turn/start`, `task_started`, a completed local too
245
260
 
246
261
  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
262
 
248
- ## 17. Codex Clipboard And Pasted-Text Attachment Evidence
263
+ ## 19. Codex Clipboard And Pasted-Text Attachment Evidence
249
264
 
250
265
  Use this when copy/export, long pasted prompts, or generated `Pasted text.txt` attachments break Codex prompt, `/goal`, or support-report workflows.
251
266
 
@@ -259,7 +274,7 @@ This catches signals such as `Copy as Markdown` disappearing from the Copy menu,
259
274
 
260
275
  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
276
 
262
- ## 18. Codex Deeplink And External Launch Evidence
277
+ ## 20. Codex Deeplink And External Launch Evidence
263
278
 
264
279
  Use this when OAuth callbacks, notification clicks, browser extension activation, mobile pairing, or CLI app-open commands fail to route back into Codex.
265
280
 
@@ -273,7 +288,7 @@ This catches signals such as `codex://oauth_callback?code=...` opening an Electr
273
288
 
274
289
  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
290
 
276
- ## 19. Codex App Connector Auth Cache Evidence
291
+ ## 21. Codex App Connector Auth Cache Evidence
277
292
 
278
293
  Use this when Codex app connectors appear installed but keep stale auth or discovery metadata after a reauth-required response.
279
294
 
@@ -287,7 +302,7 @@ This catches signals such as `401: "Server returned 401: 'Reauthentication requi
287
302
 
288
303
  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
304
 
290
- ## 20. Codex MCP Discovery And Config Scope Evidence
305
+ ## 22. Codex MCP Discovery And Config Scope Evidence
291
306
 
292
307
  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
308
 
@@ -301,7 +316,7 @@ This catches signals such as `MCP servers not detected in Codex VS Code extensio
301
316
 
302
317
  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
318
 
304
- ## 21. Patch Overwrite Guard
319
+ ## 23. Patch Overwrite Guard
305
320
 
306
321
  Use this before applying a generated patch when you want create/update/delete semantics checked against the actual workspace.
307
322
 
@@ -318,7 +333,7 @@ For a public demo report:
318
333
  npx trace-to-skill demo patch-overwrite
319
334
  ```
320
335
 
321
- ## 22. OpenAI Codex Issue Report
336
+ ## 24. OpenAI Codex Issue Report
322
337
 
323
338
  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
339
 
@@ -331,7 +346,7 @@ The report includes the likely Codex failure class, line-linked evidence, diagno
331
346
 
332
347
  For a cluster-to-command map of current Codex issue patterns, see [CODEX_ISSUE_MAP.md](CODEX_ISSUE_MAP.md).
333
348
 
334
- ## 23. Sensitive File Access Evidence
349
+ ## 25. Sensitive File Access Evidence
335
350
 
336
351
  Use this when a trace suggests an agent read, attached, uploaded, diffed, or indexed credential-bearing files.
337
352
 
@@ -344,7 +359,7 @@ This catches signals such as `.env`, `.env.production`, `.npmrc`, `.pypirc`, `.n
344
359
 
345
360
  Before publishing evidence, run `trace-to-skill redact` and attach only redacted excerpts plus the file path/class.
346
361
 
347
- ## 24. GitHub Context Guard
362
+ ## 26. GitHub Context Guard
348
363
 
349
364
  Use this before an agent reads untrusted GitHub text.
350
365
 
@@ -361,7 +376,7 @@ Use it when:
361
376
  - a bot asks Codex to triage untrusted user reports
362
377
  - logs or comments might contain instructions like "ignore previous instructions" or "print secrets"
363
378
 
364
- ## 25. Failed Agent Run To Reviewable Rule
379
+ ## 27. Failed Agent Run To Reviewable Rule
365
380
 
366
381
  Use this when a coding agent made a repeated workflow mistake.
367
382
 
@@ -379,7 +394,7 @@ Recommended maintainer loop:
379
394
  4. Copy only evidence-backed rules into the real policy file.
380
395
  5. Run `eval` or `scorecard` in CI so the same failure does not silently return.
381
396
 
382
- ## 26. Privacy-Preserving Adoption
397
+ ## 28. Privacy-Preserving Adoption
383
398
 
384
399
  Use this when you want public evidence without leaking private traces.
385
400
 
@@ -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,7 @@ 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
27
28
  - 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
29
  - 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
30
  - Codex Thinking or Working hangs after accepted turns, successful local tools, or open Responses streams with no streamed assistant follow-up
@@ -74,6 +75,7 @@ npx trace-to-skill demo clipboard-attachment
74
75
  npx trace-to-skill demo deeplink-launch
75
76
  npx trace-to-skill demo connector-auth-cache
76
77
  npx trace-to-skill demo mcp-discovery-mismatch
78
+ npx trace-to-skill demo terminal-output-integrity
77
79
  npx trace-to-skill lint-agents .
78
80
  npx trace-to-skill guard-github-event "$GITHUB_EVENT_PATH"
79
81
  npx trace-to-skill guard-patch ./change.patch --root .
@@ -95,7 +97,7 @@ npx trace-to-skill init --comment --sarif
95
97
  ## GitHub Action
96
98
 
97
99
  ```yaml
98
- - uses: grnbtqdbyx-create/trace-to-skill@v0.1.64
100
+ - uses: grnbtqdbyx-create/trace-to-skill@v0.1.65
99
101
  with:
100
102
  mode: all
101
103
  doctor-threshold: "85"
@@ -123,6 +125,7 @@ npx trace-to-skill init --comment --sarif
123
125
 
124
126
  - Codex readiness checker for open-source repositories
125
127
  - Codex issue report demo without private traces
128
+ - Codex terminal scrollback output integrity report
126
129
  - AGENTS.md linter for Codex and Claude Code
127
130
  - turn failed agent runs into AGENTS.md rules
128
131
  - 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.65",
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,9 @@
103
103
  "token-exchange-failed",
104
104
  "codex-remote-control",
105
105
  "codex-mobile",
106
+ "codex-terminal",
107
+ "codex-scrollback",
108
+ "terminal-output",
106
109
  "codex-mcp",
107
110
  "codex-mcp-discovery",
108
111
  "mcp-config",
@@ -81,6 +81,7 @@
81
81
  "codex_windows_helper_path",
82
82
  "codex_connectivity",
83
83
  "codex_remote_control",
84
+ "codex_terminal_output_integrity",
84
85
  "codex_mcp_discovery_mismatch",
85
86
  "codex_mcp_runtime",
86
87
  "codex_plugin_runtime",