Repository navigation
[codex] Unify Swift-backed Omi tool manifest - #8463
Conversation
There was a problem hiding this comment.
3 issues found across 8 files
Confidence score: 2/5
- In
desktop/macos/agent/src/runtime/omi-tool-manifest.ts,controlEntrycurrently dropsjsonSchemaOptionsfrominputSchema, so tools likeinspect_agent_artifactsanddelegate_agentloseanyOf/allOf/if-thenconstraints; merging as-is can weaken validation and allow invalid inputs to pass — preserve and propagatejsonSchemaOptionsin manifest generation before merging. - In
desktop/macos/agent/src/omi-tools-stdio.ts, the new swift-tool fallback can execute manifest tools without checking stdio adapter availability, which means non-advertised tools may be invokable unexpectedly; this creates a clear behavior and exposure regression — enforce the same adapter/advertisement gating in the fallback path before merge. - In
desktop/macos/agent/src/omi-tools-stdio.ts, snapshot-file write failures are uncaught during startup, so a filesystem error can crash the stdio server and block agent initialization; this is straightforward to de-risk — catch and handle write errors (log + continue or controlled fallback) before merging.
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 02d51f13c0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cbd2356631
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
1 issue found across 4 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
Review thread resolution summaryResolved three trusted review threads. No new code changes pushed — all three were already addressed by earlier commits on this branch. Verification details below. Thread 1 (P1) — Bundle the manifest with the pi-mono extensionAlready addressed by commit
Verification: Thread 2 (P2) — Require options for onboarding followupsAlready addressed by commit The Verification: Thread 3 (P1) — request_permission schema allows notifications but Swift doesn't support itAlready addressed by commit The Verification run
|
Summary
OMI_TOOLSand stdiotools/listfrom the manifest instead of hand-maintained declarations./v1/local/toolsmetadata to a checked-in generated Swift projection with manifest-owned annotations.Notes
This follows the oracle recommendation for issue #8461: centralize metadata/projections first while preserving existing execution paths. No fake
fill_cloud_connector_formtool was added.A subagent review found one schema drift issue (
check_permission_statuswas incorrectly made required-arg); fixed before PR.Validation
cd desktop/macos/agent && npm run buildcd desktop/macos/agent && npx -y node@22 ./node_modules/vitest/vitest.mjs run tests/omi-tool-manifest.test.ts tests/control-tools.test.tscd desktop/macos/pi-mono-extension && npx -y node@22 --experimental-strip-types --test index.test.tscd desktop/macos && xcrun swift build -c debug --package-path Desktop