Repository navigation
fix(protocol): export managed worktree session result types - #100804
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6b1933ca08
ℹ️ 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".
| SessionsResolveParams, | ||
| SessionOperationEvent, | ||
| SessionWorktreeInfo, | ||
| SessionsCreateResult, |
There was a problem hiding this comment.
Export the sessions.create params type too
When completing the public sessions.create types here, the root protocol barrel still omits SessionsCreateParams, even though the schema-derived type now contains the public worktree request field in packages/gateway-protocol/src/schema/types.ts. Raw TypeScript protocol consumers can import the new result type from @openclaw/gateway-protocol, but they still cannot type the request payload for client.request("sessions.create", ...) from the same public entry point, leaving the managed-worktree API only half exported.
Useful? React with 👍 / 👎.
a61c74b to
d4a2056
Compare
|
Land-ready proof for exact head
Ready to merge. |
|
Merged via squash.
|
…#100804) * fix: complete managed worktree surfaces * chore: drop landed locale changes
What Problem This Solves
The managed-worktree session schemas define
SessionWorktreeInfoandSessionsCreateResult, andpackages/gateway-protocol/src/index.tsimports them, but the package's explicit public type barrel did not export them. This breaks the production type gate and prevents downstream consumers from importing the result types through the supported package entry point.Why This Change Was Made
Add the two existing types to the adjacent explicit
export typelist. No schema, wire format, runtime behavior, protocol version, or compatibility surface changes.The Android locale portion originally included here landed separately in #100805, so it was removed from this PR after rebasing. The generated docs map is also already current on
main.User Impact
Restores the gateway-protocol public type surface and unblocks current-main validation for managed worktree sessions.
Evidence
tbx_01kwvcpx6gdj22t6s443s4gy8d, run28782274767: remotecheck:changedpassed production/core-test types, core/package lint, docs/app routing, and architecture guards.git diff --checkpassed.