Skip to content

fix(protocol): export managed worktree session result types - #100804

Merged
steipete merged 2 commits into
mainfrom
codex/fix-100788-gates
Jul 6, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/fix-100788-gates

Conversation

@steipete

@steipete steipete commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The managed-worktree session schemas define SessionWorktreeInfo and SessionsCreateResult, and packages/gateway-protocol/src/index.ts imports 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 type list. 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

  • Blacksmith Testbox tbx_01kwvcpx6gdj22t6s443s4gy8d, run 28782274767: remote check:changed passed production/core-test types, core/package lint, docs/app routing, and architecture guards.
  • Focused remote Vitest passed gateway-protocol worktree tests and Android i18n tests: 4 tests.
  • git diff --check passed.
  • Fresh post-narrowing Codex gpt-5.5 high autoreview: no accepted/actionable findings; overall 0.96.
  • Fresh exact-head hosted CI is required after the scope-narrowing push.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: android App: android app: web-ui App: web-ui gateway Gateway runtime size: XS maintainer Maintainer-authored PR labels Jul 6, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling extensions: openai extensions: google size: L and removed size: XS labels Jul 6, 2026
@steipete steipete changed the title fix: complete managed worktree protocol and localization fix(protocol): export managed worktree session result types Jul 6, 2026
@steipete
steipete force-pushed the codex/fix-100788-gates branch from a61c74b to d4a2056 Compare July 6, 2026 10:08
@openclaw-barnacle openclaw-barnacle Bot added size: XS and removed docs Improvements or additions to documentation app: android App: android scripts Repository scripts docker Docker and sandbox tooling extensions: openai extensions: google size: L labels Jul 6, 2026
@steipete

steipete commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head d4a2056acea039ecbb9daf9cef83610651b0af65:

  • PR diff is one file / two added type exports; no runtime, schema, protocol-version, docs, config, or changelog change.
  • Blacksmith Testbox tbx_01kwvcpx6gdj22t6s443s4gy8d, run 28782274767: check:changed passed production/core-test types, lint, docs/app routing, and architecture guards.
  • Focused remote gateway-protocol worktree tests passed.
  • Exact-head hosted CI run 28783916798 passed every required job, including QA Smoke CI.
  • git diff --check passed.
  • Fresh Codex gpt-5.5 high autoreview: no accepted/actionable findings; overall 0.96.
  • Native review artifacts validate with recommendation READY FOR /prepare-pr; no proof gaps.

Ready to merge.

@steipete
steipete merged commit 704c584 into main Jul 6, 2026
109 of 115 checks passed
@steipete
steipete deleted the codex/fix-100788-gates branch July 6, 2026 10:24
@steipete

steipete commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 7, 2026
…#100804)

* fix: complete managed worktree surfaces

* chore: drop landed locale changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui gateway Gateway runtime maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant