Skip to content

feat!: delete add-actor implementation (stateless migration PR 2)#1144

Merged
jirispilka merged 6 commits into
masterfrom
claude/actor-removal-task-8681po
Jul 24, 2026
Merged

feat!: delete add-actor implementation (stateless migration PR 2)#1144
jirispilka merged 6 commits into
masterfrom
claude/actor-removal-task-8681po

Conversation

@MQ37

@MQ37 MQ37 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Deletes add-actor now that PR 0 stopped every new connection from
resolving it and fixed the restore path. Removes: add_actor.ts, its
registry.ts/index_internals.ts wiring, ActorsMcpServer's
toolsChangedHandler and register/unregister/notify methods (the only
consumer, the internal repo's Redis reconciliation, is gone too),
loadActorsAsTools(), and tests/unit/tools.add_actor.test.ts.

getActorsAsTools(), the actors=/tools= URL-param path, and the
enableAddingActors/enableActorAutoLoading flag are unaffected.

Rewrites internals.test.ts's add-actor restore round-trip case onto a
plain getActorsAsTools fixture to keep the coverage.

Closes #1131.

claude and others added 3 commits July 23, 2026 16:57
Deletes add-actor now that PR 0 stopped every new connection from
resolving it and fixed the restore path. Removes: add_actor.ts, its
registry.ts/index_internals.ts wiring, ActorsMcpServer's
toolsChangedHandler and register/unregister/notify methods (the only
consumer, the internal repo's Redis reconciliation, is gone too),
loadActorsAsTools(), and tests/unit/tools.add_actor.test.ts.

getActorsAsTools(), the actors=/tools= URL-param path, and the
enableAddingActors/enableActorAutoLoading flag are unaffected.

Rewrites internals.test.ts's add-actor restore round-trip case onto a
plain getActorsAsTools fixture to keep the coverage.

Closes #1131.
Deleting add-actor's registry entry dropped 'add-actor' from
ALL_INTERNAL_TOOL_NAMES, so resolveActorsToLoad misread a literal
tools=add-actor (or tools=experimental, once its now-empty registry
category is gone too) as an Actor name and tried to fetch a
nonexistent Actor, surfacing as an "Actor not found" error instead of
the intended call-actor substitution.

Removes the now-empty experimental category from registry.ts entirely
and handles 'preview'/'experimental'/'add-actor' as a reserved
selector set directly in tools_loader.ts's resolveActorsToLoad, so
they're never treated as Actor names regardless of registry
membership — a no-op for actor-fetching purposes, with the existing
call-actor substitution in getToolsForServerMode unaffected.
@github-actions github-actions Bot added t-ai Issues owned by the AI team. tested Temporary label used only programatically for some analytics. labels Jul 24, 2026
jirispilka and others added 3 commits July 24, 2026 11:28
…l-task-8681po

# Conflicts:
#	src/mcp/server.ts
The rewritten restore test (post add-actor removal) asserted only the
restored actor tool name, dropping the pre-existing auto-injected
run/storage/abort helpers that loadToolsByName restore has always
added alongside any actor tool. Unrelated to add-actor's removal —
restore behavior itself didn't change, only the test's expectation
was wrong after the fixture swap.
isApiTokenRequired filtered retired selectors (add-actor, experimental,
preview) after the empty-list check, so toolCategoryKeys: [] required
a token but toolCategoryKeys: ['add-actor'] didn't, despite both
loading zero tools. Filter retired selectors before the emptiness
check so both cases are judged identically.
@jirispilka
jirispilka self-requested a review July 24, 2026 14:50
@jirispilka
jirispilka merged commit 4562136 into master Jul 24, 2026
15 checks passed
@jirispilka
jirispilka deleted the claude/actor-removal-task-8681po branch July 24, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-ai Issues owned by the AI team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PR 2: delete add-actor implementation

4 participants