Skip to content

feat(scene): support host-provided Scene command routing - #873

Open
YuchenWell wants to merge 3 commits into
cocos:mainfrom
YuchenWell:0.1.34/fix/aiChatSceneRefresh
Open

feat(scene): support host-provided Scene command routing#873
YuchenWell wants to merge 3 commits into
cocos:mainfrom
YuchenWell:0.1.34/fix/aiChatSceneRefresh

Conversation

@YuchenWell

@YuchenWell YuchenWell commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Problem

Scene commands were always sent to the cocos-cli-owned Scene Worker. Embedded hosts could not route commands to their own Scene Runtime, potentially creating two independent runtime states.

Changes

  • Add the pluggable ISceneCommandProvider.
  • Preserve WorkerSceneCommandProvider for standalone usage.
  • Expose provider registration through the Scene facade.
  • Add isolated MCP tool-call contexts with operation IDs and keyed finalizers.
  • Prevent stale Worker callbacks from clearing newer providers.
  • Create scene assets through Asset Manager instead of Scene RPC.
  • Export Scene and MCP type declarations.

Compatibility

  • Standalone cocos-cli continues using the existing Scene Worker.
  • Provider failures are propagated without fallback.
  • Concurrent MCP calls keep their contexts isolated.

@YuchenWell
YuchenWell force-pushed the 0.1.34/fix/aiChatSceneRefresh branch 3 times, most recently from 8b8916a to ba013f9 Compare August 24, 2026 04:14
@YuchenWell YuchenWell closed this Aug 24, 2026
@YuchenWell YuchenWell reopened this Aug 24, 2026
@YuchenWell
YuchenWell force-pushed the 0.1.34/fix/aiChatSceneRefresh branch 2 times, most recently from c6bfb00 to 26b5968 Compare August 25, 2026 13:33
@YuchenWell YuchenWell changed the title feat(scene): route Scene MCP commands to PinK editor runtimes feat(scene): support host-provided Scene command routing Aug 25, 2026
@YuchenWell
YuchenWell force-pushed the 0.1.34/fix/aiChatSceneRefresh branch from 26b5968 to fd2aeb8 Compare August 25, 2026 14:39
@YuchenWell YuchenWell closed this Aug 25, 2026
@YuchenWell YuchenWell reopened this Aug 25, 2026
@YuchenWell
YuchenWell marked this pull request as ready for review August 26, 2026 08:50
@bofeng-song

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants