dispatcher: caching, validation, and cleanup#2233
Merged
Conversation
When closeAgentContext is called, delete the options channel from the channel provider and clear the optionsRpc reference. Options are agent-scoped (created once per initializeAgentContext call), so they can safely be released when the context is torn down. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ActionSchema Checks that the JSON has valid version, entry, and types fields before passing to fromJSONParsedActionSchema, producing a clear error for corrupted cache files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Thread a visited-names Set through toTemplateType/toTemplateTypeObject/ toTemplateTypeArray so that a type-reference cycle returns undefined rather than infinitely recursing and overflowing the stack. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Extract translator construction into a WeakMap-backed helper keyed on CommandHandlerContext. The lookup-clarify path rebuilt the translator on every invocation even though the agents + promptLogger inputs are stable for the session. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… name Replace the record.name === "browser" check in appAgentManager with a manifest-declared allowDynamicAgents flag on AppAgentManifest. Opt in the browser agent via its manifest so its dynamic-agent privilege is expressed in the manifest rather than in dispatcher code. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- knowPro/collections: matchesWithMinHitCount condition > 0 → > 1 (optimization, all matches already have hitCount ≥ 1 by design) - dispatcher/unknownSwitcher: parallelize assistant-selection partitions via Promise.all; extract selectFromPartitions() for testability - knowledgeProcessor actions/entities: addMultiple concurrency 1 → settings.concurrency - cache/explainWorkQueue: extend parameter-value-in-request check to cover numbers - azure-ai-foundry/wikipedia: add optional locale param (default "en") to getPageObject and getPageMarkdown Each fix is covered by new or updated unit tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ENT, parallel translation, URL protocol validation Agent-Logs-Url: https://github.com/microsoft/TypeAgent/sessions/5828fefd-5097-4099-aa84-2f64fcd73f4e Co-authored-by: robgruen <25374553+robgruen@users.noreply.github.com>
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.
loadParsedActionSchemaunknownSwitcherassistant-selection partitionsSplit from #2210.