fix(server): hide unsupported Codex proxy usage warnings #22772
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XS
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
juliusmarminge added labelsbugfix
juliusmarminge changed the title
- apps/server/src/provider/testFixtures/usageEvidence/seed.py lines 6 to 7OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -0,0 +1,7 @@1+#!/usr/bin/env python32+"""Seed an initialized, stopped, disposable worktree .t3; never use production userdata."""3+import json, pathlib, sqlite3, sys4+root=pathlib.Path.cwd().resolve()5+base=root/'.t3/userdata'6+if not (root/'.git').exists() or base.resolve()==(pathlib.Path.home()/'.t3/userdata').resolve():7+ raise SystemExit('Run from an isolated worktree with its server stopped')
juliusmarminge reviewed
@@ -0,0 +1,7 @@1+#!/usr/bin/env python32+"""Seed an initialized, stopped, disposable worktree .t3; never use production userdata."""3+import json, pathlib, sqlite3, sys4+root=pathlib.Path.cwd().resolve()5+base=root/'.t3/userdata'6+if not (root/'.git').exists() or base.resolve()==(pathlib.Path.home()/'.t3/userdata').resolve():7+ raise SystemExit('Run from an isolated worktree with its server stopped')- apps/server/src/provider/testFixtures/usageEvidence/seed.py lines 18 to 18Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +1,18 @@1+#!/usr/bin/env python32+"""Seed an initialized, stopped, disposable worktree .t3; never use production userdata."""3+import json, pathlib, shutil, sqlite3, subprocess, sys4+root=pathlib.Path.cwd().resolve()5+base=root/'.t3/userdata'6+if not (root/'.git').is_file() or base.resolve()!=base or base.resolve()==(pathlib.Path.home()/'.t3/userdata').resolve():7+ raise SystemExit('Run from an isolated worktree with its server stopped')8+git=subprocess.run(['git','rev-parse','--path-format=absolute','--show-toplevel','--git-dir','--git-common-dir'],capture_output=True,text=True)9+paths=git.stdout.splitlines()10+if git.returncode or len(paths)!=3 or pathlib.Path(paths[0]).resolve()!=root or paths[1]==paths[2]:11+ raise SystemExit('Run from an isolated worktree with its server stopped')12+scenario=sys.argv[1]13+if scenario not in ['S1','S2','S3','R1','R2','R3']: raise SystemExit('Unknown scenario')14+fixture=pathlib.Path(__file__).resolve().parent15+home=base/'usage-evidence-empty-home'16+control=pathlib.Path('/tmp/issue-11873-evidence/control.json')17+milestones=control.with_suffix('.json.milestones')18+if home.is_symlink() or control.parent.resolve()!=control.parent or control.is_symlink() or milestones.is_symlink():
- apps/server/src/provider/testFixtures/usageEvidence/seed.py lines 16 to 18OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -0,0 +1,18 @@1+#!/usr/bin/env python32+"""Seed an initialized, stopped, disposable worktree .t3; never use production userdata."""3+import json, pathlib, shutil, sqlite3, subprocess, sys4+root=pathlib.Path.cwd().resolve()5+base=root/'.t3/userdata'6+if not (root/'.git').is_file() or base.resolve()!=base or base.resolve()==(pathlib.Path.home()/'.t3/userdata').resolve():7+ raise SystemExit('Run from an isolated worktree with its server stopped')8+git=subprocess.run(['git','rev-parse','--path-format=absolute','--show-toplevel','--git-dir','--git-common-dir'],capture_output=True,text=True)9+paths=git.stdout.splitlines()10+if git.returncode or len(paths)!=3 or pathlib.Path(paths[0]).resolve()!=root or paths[1]==paths[2]:11+ raise SystemExit('Run from an isolated worktree with its server stopped')12+scenario=sys.argv[1]13+if scenario not in ['S1','S2','S3','R1','R2','R3']: raise SystemExit('Unknown scenario')14+fixture=pathlib.Path(__file__).resolve().parent15+home=base/'usage-evidence-empty-home'16+control=pathlib.Path('/tmp/issue-11873-evidence/control.json')17+milestones=control.with_suffix('.json.milestones')18+if home.is_symlink() or control.parent.resolve()!=control.parent or control.is_symlink() or milestones.is_symlink():
- apps/server/src/provider/testFixtures/usageEvidence/peer.mjs line 8OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -0,0 +1,8 @@1+#!/usr/bin/env node2+import * as NodeFS from "node:fs";3+import * as NodeHttp from "node:http";4+import * as NodePath from "node:path";5+import * as NodeReadline from "node:readline";6+const data = JSON.parse(NodeFS.readFileSync(new URL("./data.json", import.meta.url)));7+const controlPath = NodePath.resolve(8+ process.env.T3_USAGE_EVIDENCE_CONTROL || "/tmp/issue-11873-evidence/control.json",apps/server/src/provider/testFixtures/usageEvidence/peer.mjs line 12Resolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -0,0 +1,14 @@1+#!/usr/bin/env node2+import * as NodeFS from "node:fs";3+import * as NodeHttp from "node:http";4+import * as NodePath from "node:path";5+import * as NodeReadline from "node:readline";6+const data = JSON.parse(NodeFS.readFileSync(new URL("./data.json", import.meta.url)));7+const controlPath = NodePath.resolve(8+ process.env.T3_USAGE_EVIDENCE_CONTROL || "/tmp/issue-11873-evidence/control.json",9+);10+const assertControlDirectory = () => {11+ const directory = NodePath.dirname(controlPath);12+ const info = NodeFS.statSync(directory);13+ if (14+ NodeFS.realpathSync(directory) !== directory ||
juliusmarminge closed this
Sign in to join this conversation.




















































Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Baseline:
ff52547· PR result:b7497b3· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.