auto-inherit recommendedActAgent from context in ACT mode (#561)#575
Merged
JeremyDev87 merged 1 commit intomasterfrom Feb 19, 2026
Merged
Conversation
…CT mode (#561) Pre-read context document before parseMode() in ACT mode so that the recommendedActAgent stored by the previous PLAN session is automatically resolved as a fallback when no explicit recommended_agent parameter is provided. - Import LOCALIZED_KEYWORD_MAP to detect ACT keywords in all supported languages (EN/KO/JA/ZH/ES) - Resolve recommendedActAgent from last PLAN/AUTO section before calling parseMode(), so agent resolver receives it in time - Explicit recommended_agent parameter still takes precedence - Skip context read entirely when mode is not ACT (performance)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Fixes #561
When the user types
ACT,mode.handler.tswas callingkeywordService.parseMode()before reading the context document. This meant therecommendedActAgentstored by the previous PLAN session was never passed to the agent resolver — it arrived too late.Before (broken flow):
After (correct flow):
Changes
mode.handler.tsLOCALIZED_KEYWORD_MAPto detect ACT keywords in all supported languages (EN/KO/JA/ZH/ES)parseMode()when mode is ACT and no explicitrecommended_agentparam is providedrecommendedActAgentfrom the lastPLANorAUTOsectionmode.handler.spec.tsrecommendedActAgentfrom context when param not providedrecommended_agentparam takes precedence over context valuereadContextnot called beforeparseModewhen explicit param is provided (performance)실행) triggers context inheritanceACTUAR) triggers context inheritanceAcceptance Criteria
recommendedActAgentfrom context document without explicit paramrecommended_agentparameter still takes precedence over context valueTest Results