Skip to content
This repository was archived by the owner on Aug 25, 2026. It is now read-only.

fix(media): degrade tool registration when the bound alias is stale - #65

Merged
YaseenHQ merged 1 commit into
mainfrom
feat/upstream-picks
Aug 23, 2026
Merged

YaseenHQ merged 1 commit into
mainfrom
feat/upstream-picks

Conversation

@YaseenHQ

Copy link
Copy Markdown
Owner

Ports upstream kimi-code a7dc1ea28 (MoonshotAI#2985).

Media tool registration re-resolves the profile's model alias on every refresh, but that alias comes from persisted state that resume replays without validating it against the catalog. An alias whose config.toml entry was since removed — logout being the ordinary way — made getRequester throw out of an event listener, which surfaces to the user as an [unexpected] error.

It now degrades to "no model": registration proceeds from the profile-reported capabilities without a model-bound video uploader, and recovers on its own once the alias resolves again.

Applied by hand rather than cherry-picked — upstream's copy of this file sits on a refactored module layout (#/app/scopes, #/state/state, Service) this fork doesn't share. Upstream's test came across too.

Tested: the ported test was verified to fail without the fix and pass with it. agent-core-v2 4367 passed, typecheck and lint clean.

Ported from upstream kimi-code a7dc1ea (MoonshotAI#2985).

Media tool registration re-resolves the profile's model alias on every
refresh, but that alias comes from persisted state which resume replays
without validating against the catalog. An alias whose config.toml entry
has since been removed -- logout being the ordinary way -- made
getRequester throw out of an event listener, surfacing to the user as an
`[unexpected]` error.

Degrade to "no model" instead: registration proceeds from the
profile-reported capabilities without a model-bound video uploader, and
recovers on its own once the alias resolves again.

The upstream patch is applied by hand rather than cherry-picked, because
upstream's copy of this file sits on a refactored module layout
(`#/app/scopes`, `#/state/state`, `Service`) this fork does not share.
@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 7dd7f12c-35dd-4582-aa02-8bc677cd70d7


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@YaseenHQ
YaseenHQ merged commit a2af934 into main Aug 23, 2026
16 checks passed
@YaseenHQ
YaseenHQ deleted the feat/upstream-picks branch August 23, 2026 00:30
@github-actions github-actions Bot mentioned this pull request Aug 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant