fix(harness): attach per-session Sapiom MCP configuration to Codex - #810
Conversation
4a372cd to
5b5705b
Compare
Review — PR #810 (fix(harness): attach per-session Sapiom MCP configuration to Codex)Public-copy check: clean. The changeset, README additions, JSDoc and test fixtures name only 1. Per-server MCP env is flattened into the whole Codex session environment
2. The changeset omits the new hard-failure mode
The changeset describes only the attach behavior. It does not mention that an unreadable or 3. The default system prompt still names the un-aliased servers
The prompt tells the agent it has servers named Nit
Verdict: Request changes — finding 1 (credential and |
5b5705b to
951dc19
Compare
Follow-up review — PR #810Delta since the reviewed commit: Round-1 findings
New findingThe The real generated config puts all three sapiom-dev variables in Round 1 got one thing wrong
Verdict: Approve once the stdio |
|
The child-environment coverage gap was valid. The two real Codex runs now observe the actual MCP child, verify local settings and a forwarded synthetic secret, and keep credentials out of command environments. Kept the adapter and unit regressions here (585 additions), and moved the real CLI/auth validation to #879 (473). The combined tree is unchanged. Both Codex probes and all six auth lifecycle tests pass; build, typecheck, and lint pass too. Full-suite results are recorded in #879. Cleanup remains in #812. The duplicate integration loop and unrelated background-task regression are removed. The earlier |
80206a8 to
5c4793c
Compare
5c4793c to
9fb23cf
Compare
9fb23cf to
40994e2
Compare
Fixes missing Sapiom tools in Codex sessions.
Problem and motivation
Studio creates a setup file that tells the agent how to connect to Sapiom's MCP tools. The Codex launch code ignored this file.
A new user could start Codex but have no Sapiom tools available.
Summary and scope
Read the file and convert its settings into Codex launch options. Apply those options on both start and resume.
flowchart LR F["Studio creates tool settings"] --> B["Before: Codex ignores them"] B --> M["Sapiom tools can be missing"] F --> A["After: pass settings to Codex"] A --> T["Codex can connect to Sapiom tools"]Related work
Fixes SAP-3122. #879 adds tests on top of this PR.
The cleanup race is fixed separately in #812. It is not part of this stack.
Validation
September 4 native demo of the template and MCP fixes, before this rebase:
agent-studio-codex-fix-demo.mp4
Diff, checklist, and release details
Diff overview
Primary change type
Tests and documentation
Added adapter tests and updated the Harness README. #879 adds real Codex and authentication tests.
Compatibility and release impact
@sapiom/harnesspatch changeset.Security
AI assistance
Codex implemented the change; validation is recorded above.
Checklist
CONTRIBUTING.mdand followed the contribution policy.