Repository navigation
chore: sync release 2.7.3 and desktop 1.4.3 back to main - #5310
Conversation
* fix(core): add Claude 5 output token ceilings * chore: add Claude 5 output ceiling changeset
* fix(markdown): keep table actions inside clipped containers * fix(markdown): observe table action clipping ancestors --------- Co-authored-by: kimi-agent-bot <kimi-agent-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: kimi-agent-bot <kimi-agent-bot@users.noreply.github.com>
* fix(agent-core-v2): align fork slicing with restored turn ids * chore: add restored fork fix changeset
* refactor(core): route AJV logs through utils logger * chore(core): add AJV logger changeset * chore(core): clarify AJV logger changeset
* fix: support UUID generation in insecure browser contexts * chore: update pnpm deps hash * fix: resolve crypto bindings in UUID lint rule --------- Co-authored-by: kimi-agent-bot <317908118+kimi-agent-bot@users.noreply.github.com>
* fix(client): keep draft thinking effort after sending * chore: add cli changeset for draft thinking fix * test(client): use function stub for websocket in thinking test * fix(client): preserve thinking effort during model normalization * fix(client): reconcile profile updates and model fallbacks * fix(client): scope draft thinking preservation
* fix(tui): defer queued prompts until the loop drains - add core and v2 drained/idle lifecycle events - consume reminder-only queues without starting a model turn - gate TUI queue dispatch and completion notifications on lifecycle state - document notification-handoff queue behavior and add a CLI patch changeset * fix(tui): close loop lifecycle races - emit idle only after the current macro is revalidated - keep queued input pending through compaction and delayed dispatch - reject stale idle after new work starts * fix(loop): correlate lifecycle events by generation - track macro generations in the core and v2 loop state - replace TUI macro inference with event-generation correlation - preserve compaction guards for queued dispatch
…sk (#5176) :wait settled as soon as the turn left the in-memory activity view, but the engine writes wire records through a batched log that flushes in a later task. A server killed right after :wait reported idle could lose the end of the finished turn. Before it replies with a settled session, :wait now flushes the wire of every agent in the session and drains pending metadata writes. A failed write surfaces as an error instead of a settled reply. The KAP guide states the guarantee. A new test in sessions.test.ts slows down the disk write of the turn end and checks that the record is on disk when :wait returns. (cherry picked from commit fc33c6d) Co-authored-by: kai <me@kaiyi.cool>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…5191) Co-authored-by: liruifengv <liruifeng1024@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fix(kap-server): resume sessions with unavailable models * fix: let users replace unavailable session models * fix: scope unavailable model recovery state --------- Co-authored-by: kimi-agent-bot <kimi-agent-bot@users.noreply.github.com>
* fix(plugins): detect MCP OAuth with targeted probes * fix(plugins): use the MCP inspect route * fix(plugins): preserve OAuth requirements across inspection and disconnect
* fix(chat): show pending MCP browser authorization * fix(chat): resolve MCP authorization lint findings * fix(chat): preserve MCP authorization failure details * fix(mcp): preserve cancellation during OAuth reconnect
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c7d69c66e6
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| function onMainNotice(sessionId: string, notice: ConversationNotice): void { | ||
| if (notice.code === 'model.not_configured') { | ||
| rawState.unavailableModelBySession = { ...rawState.unavailableModelBySession, [sessionId]: notice.title }; | ||
| void confirm({ |
There was a problem hiding this comment.
Deduplicate unavailable-model prompts across subscriptions
When the WebSocket reconnects—or a retained background conversation is resubscribed—the server emits model.not_configured again, so this unconditional confirm() reopens a prompt the user already dismissed. A background notice can also replace an unrelated confirmation because useConfirmDialog.open() settles the current request before opening another one. Record the unavailable state for every session, but only show the prompt when the condition is newly discovered for the active session, or otherwise remember that it was acknowledged.
AGENTS.md reference: AGENTS.md:L112-L119
Useful? React with 👍 / 👎.
Port the client half of upstream 9a82686. The authenticate tool now carries an mcp_oauth display and its wait state travels as tool fields, so app-core projects a McpAuthCard onto the chat tool call, app-client auto-opens the authorization page for the foreground desktop client that sent the prompt, and app-components renders the card with link, copy/open actions and connected, cancelled, expired and reconnect-failed states. Engine: the auth tool emits the authorization URL through update fields, marks reconnect states, and reports cancellation, timeout and reconnect failure through result notes; McpOAuthCallbackTimeout distinguishes a callback deadline. kap-server merges tool update fields into the live conversation item and drops them once the tool ends, so the URL survives only while the wait is live. Fork adaptations: app-core ToolCall/ToolCallItem gain mcpAuth/fields, which the server protocol already carried. The auto-open test lives in its own composable suite because this Bun build cannot run conversation-events.test.ts (vi.resetModules is missing).
…ng agent state Add isMissingConfiguredModel and missingConfiguredModelAlias for the fork's profile service, and blank the main agent's model in readAgentState when its configured alias no longer resolves. This closes the kap-server half of the 2.7.3 audit recorded on MoonshotAI#5310; the MCP authorization surface was ported earlier. Verified: legacyStatus 2 pass, kap-server typecheck clean.
Requirement or Bug
Fully back-sync
release/2026-11-23(CLI 2.7.3 / Desktop 1.4.3) tomainafter the hotfix release. This PR brings the complete release branch, not a selected list of commits, files, or PRs.Bug Reproduction Steps
N/A — release back-sync.
Root Cause
N/A — release back-sync.
Code Changes
a8f643ad2e7f197d6ec4409b7cdad8a544afad86on an independent back-sync branch; the original release branch remains unchanged at that SHA.main(d9070b99e1728ab15d758de746f3ed99335535a0), preserving main's later development and the already merged Flow A/B docs and notes.packages/kap-server/test/sessions.test.ts; both tests pass.git diff --check origin/main...HEADpasses.Validation completed before opening:
pnpm run build:packagespassed with Node 24.15.0 / pnpm 10.33.0.pnpm --filter ./packages/kap-server exec vitest run test/sessions.test.ts -t 'a session whose saved model was removed|a session with no default model': 2 passed.Behavior Changes and Affected Users
Brings the CLI 2.7.3 and Desktop 1.4.3 hotfix changes back into mainline development. This PR does not itself publish npm packages, VSCode, Desktop releases, or CDN pointers. Merge is held until after the release broadcast and gate ⑥.
Checklist
gen-changesetsskill, or this PR needs no changeset. (No new changeset; this PR carries the completed release plan and consumes the released changesets.)gen-docsskill, or this PR needs no doc update. (Flow A/B docs and notes were prepared and merged separately; this back-sync preserves them.)