Repository navigation
fix(copilot): answer native side questions with request policy - #205963
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
vincentkoc
force-pushed
the
fix/copilot-native-completion-policy-20261126
branch
from
November 26, 2026 13:42
7fb9522 to
94e3216
Compare
vincentkoc
force-pushed
the
fix/copilot-native-side-questions-20261126
branch
from
November 26, 2026 13:42
2e1cf5c to
062dfed
Compare
vincentkoc
marked this pull request as ready for review
November 26, 2026 14:13
vincentkoc
force-pushed
the
fix/copilot-native-side-questions-20261126
branch
from
November 26, 2026 14:23
062dfed to
addc0f7
Compare
Base automatically changed from
fix/copilot-native-completion-policy-20261126
to
main
November 26, 2026 14:38
Contributor
|
vincentkoc
force-pushed
the
fix/copilot-native-side-questions-20261126
branch
from
November 26, 2026 14:39
addc0f7 to
05eaf99
Compare
vincentkoc
enabled auto-merge (squash)
November 26, 2026 14:43
Member
Author
|
Merged via squash auto-merge.
|
This was referenced Nov 26, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 27, 2026
…law#205963) * fix(copilot): support native side questions with request policy * test(copilot): include settled context in native request policy proof * fix(copilot): retain isolated authorization discriminant * refactor(copilot): clean native side-question validation * refactor(copilot): validate request objects with shared guard
obviyus
added a commit
that referenced
this pull request
Nov 27, 2026
## Problem `main` fails two checks: - `plugin-sdk:surface:check`: public exports 3932 > 3930, callable exports 2259 > 2258. #205963 added `AgentHarnessSideQuestionRequest` and #206839 added `hasReplyRestartResume` without budget lines. - Dead-export scan: `buildRestartSentinelRow`, `nextRevision` and `readRestartSentinelRowForKeySync` in `src/infra/restart-sentinel-store.ts` have no outside readers after #206700. ## Change - Make the three restart-sentinel helpers module-private. The read-worker test and the managed-handoff lifecycle fixture write their rows directly. The lifecycle test decodes the row and compares it with the payload, so a wrong column fails it. - Record the two SDK exports in the budgets. Both have bundled consumers (copilot side questions, telegram restart recovery). ## User impact None. Behavior does not change. The diff touches only CI budgets, export visibility and one test fixture. ## Evidence - `pnpm plugin-sdk:surface:check`: exit 0. - `node --import tsx scripts/check-deadcode-exports.mts`: script, production and full-tree scans each report 0 entries. - `src/infra/restart-sentinel.read.worker.test.ts`: pass. - `src/infra/update-managed-service-handoff-engine.test.ts` (uses the lifecycle fixture): 14 passed, 5 skipped (PostgreSQL). - `pnpm tsgo:core`, `pnpm tsgo:core:test`: clean. Co-authored-by: Ayaan Zaidi <[email protected]>
obviyus
added a commit
that referenced
this pull request
Nov 28, 2026
…lot (#207061) ## Problem - `AgentHarnessSideQuestionRequest` was published in the Plugin SDK (#205963) only so the bundled Copilot plugin could name its side-question request. It has no other consumer. - Main's SDK budget check is red: #206995 added `compactCatalogForSkillRead` to `agent-harness-runtime` (consumer: bundled Codex harness) without a budget line. ## Change - Copilot declares its own `CopilotSideQuestionRequest`, the same four fields. The SDK export is removed. - Budgets: public −1 (the type) +1 (`compactCatalogForSkillRead`) = 3932, unchanged. Callable +1 = 2260, recorded with a budget line like `hasReplyRestartResume`. ## User impact None. The type is structural, so Copilot side questions send the same request. ## Evidence - ClawHub `sdk-export:openclaw/plugin-sdk/agent-harness-runtime#AgentHarnessSideQuestionRequest`: 0 public consumers (2338 complete / 432 partial / 3 failed coverage). The only bundled consumer is Copilot, migrated here. The export is in no released tag. - `pnpm plugin-sdk:surface:check`: pass (`no unauthorized removals`). `tsgo:extensions`: clean. - Copilot `side-question.test.ts`, `isolated-completion.*.test.ts`: 8/8 pass. - Adversarial review (Fable): no finding. The local type assigns both ways to the host's `prepareRequest`. Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 28, 2026
## Problem `main` fails two checks: - `plugin-sdk:surface:check`: public exports 3932 > 3930, callable exports 2259 > 2258. openclaw#205963 added `AgentHarnessSideQuestionRequest` and openclaw#206839 added `hasReplyRestartResume` without budget lines. - Dead-export scan: `buildRestartSentinelRow`, `nextRevision` and `readRestartSentinelRowForKeySync` in `src/infra/restart-sentinel-store.ts` have no outside readers after openclaw#206700. ## Change - Make the three restart-sentinel helpers module-private. The read-worker test and the managed-handoff lifecycle fixture write their rows directly. The lifecycle test decodes the row and compares it with the payload, so a wrong column fails it. - Record the two SDK exports in the budgets. Both have bundled consumers (copilot side questions, telegram restart recovery). ## User impact None. Behavior does not change. The diff touches only CI budgets, export visibility and one test fixture. ## Evidence - `pnpm plugin-sdk:surface:check`: exit 0. - `node --import tsx scripts/check-deadcode-exports.mts`: script, production and full-tree scans each report 0 entries. - `src/infra/restart-sentinel.read.worker.test.ts`: pass. - `src/infra/update-managed-service-handoff-engine.test.ts` (uses the lifecycle fixture): 14 passed, 5 skipped (PostgreSQL). - `pnpm tsgo:core`, `pnpm tsgo:core:test`: clean. Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 28, 2026
…lot (openclaw#207061) ## Problem - `AgentHarnessSideQuestionRequest` was published in the Plugin SDK (openclaw#205963) only so the bundled Copilot plugin could name its side-question request. It has no other consumer. - Main's SDK budget check is red: openclaw#206995 added `compactCatalogForSkillRead` to `agent-harness-runtime` (consumer: bundled Codex harness) without a budget line. ## Change - Copilot declares its own `CopilotSideQuestionRequest`, the same four fields. The SDK export is removed. - Budgets: public −1 (the type) +1 (`compactCatalogForSkillRead`) = 3932, unchanged. Callable +1 = 2260, recorded with a budget line like `hasReplyRestartResume`. ## User impact None. The type is structural, so Copilot side questions send the same request. ## Evidence - ClawHub `sdk-export:openclaw/plugin-sdk/agent-harness-runtime#AgentHarnessSideQuestionRequest`: 0 public consumers (2338 complete / 432 partial / 3 failed coverage). The only bundled consumer is Copilot, migrated here. The export is in no released tag. - `pnpm plugin-sdk:surface:check`: pass (`no unauthorized removals`). `tsgo:extensions`: clean. - Copilot `side-question.test.ts`, `isolated-completion.*.test.ts`: 8/8 pass. - Adversarial review (Fable): no finding. The local type assigns both ways to the host's `prepareRequest`. Co-authored-by: Ayaan Zaidi <[email protected]>
tideclaw-bot
pushed a commit
that referenced
this pull request
Nov 30, 2026
* fix: show Claude CLI document uploads only once in chat * fix: show Claude CLI document uploads only once in chat OpenClaw-Publication: 4555cb04-bff2-43b3-aff8-ec271d6567b2 * fix: keep Claude document uploads on the message that sent them * fix: preserve the released message queue result contract Release adaptation: Use an optional accepted-input observer instead of widening queueMessage's released Promise<void> contract. Reuse the stable steering and transcript-rewrite handlers; leave source admission, native image steering, config, and all SQLite schemas unchanged. The existing history index columns also carry exact document correlation. Keep the released model-hook test layout. Companion audit through be407a4: no later #203866 reference. PRs #208535 (Claude compacted fork summaries), #206158 (native subagent status), and #205663 (image dimensions) are separate. PRs #208252 (Codex source), #207022 (embedded prompt dispatch), #206969 (fallback), #205963 (Copilot question policy), and 50a7368 (snooze) do not own this path. SHA mentions in #204700 and #204685 are update/qualification records, not follow-ups. (cherry picked from commit 269f884) Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot
pushed a commit
that referenced
this pull request
Nov 30, 2026
* fix(copilot): support native side questions with request policy * test(copilot): include settled context in native request policy proof * fix(copilot): retain isolated authorization discriminant * refactor(copilot): clean native side-question validation * refactor(copilot): validate request objects with shared guard (cherry picked from commit b13c10d) Co-authored-by: RomneyDa <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #205897
Builds on merged #205962.
What Problem This Solves
The native Copilot runtime cannot answer /btw side questions through its own SDK session. Falling back to another runtime loses native Fusion behavior and its conversation context.
User Impact
Copilot answers side questions in a fresh, tool-free session with sanitized conversation context and current images. It honors the configured Fusion tier, reports usage, and preserves the existing session-fork owner. Request hooks can redact or reject the exact text and inline images before dispatch.
Why This Change Was Made
Expose optional host preparation on the existing harness side-question contract and reuse the existing isolated completion owner. The host keeps transcript, credential, and authority decisions; the plugin translates the prepared request to SDK messages. The existing request gate accepts inline images only for callers that supplied an image-capable payload.
Evidence