feat(context): announce external context directories in the turn text - #68
Open
luoxuanzao wants to merge 1 commit into
Open
luoxuanzao wants to merge 1 commit into
luoxuanzao wants to merge 1 commit into
Conversation
The agent could not tell which external context directories were attached:
the CLI's own environment block is not part of Qoderian's system prompt, so
its list of additional working directories never reached the model. Send an
<external_context> tag with the turn text instead — appended only when the
selection changed, so the system prompt stays untouched and cache-friendly.
Announcements cover additions and removals ("(none)"), skip /compact, and
replay once after a session switch, which never saw the current directories.
Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.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.
Summary
# Environmentblock is not part of Qoderian's system prompt, so the extra working directories never reached the model. The message you send right after adding or removing one now carries an<external_context>tag listing the current directories.(none)), and once after a session switch that never saw the current list./compactkeeps skipping context tags.XML_CONTEXT_PATTERN,extractUserQuery), so message bubbles and history show the plain user text without it.Verification
npm run typechecknpm run lintnpm run test— 165 suites / 3546 tests passnpm run buildnpm run release:check— Release 1.0.11 is readynpm run audit:prod— 0 vulnerabilities<external_context>tag inside the user message and the model quotes the listed paths from it; the rendered user bubble contains no tag; a second message with an unchanged selection carries no tagSafety
CHANGELOG.mdCo-authored-by: QoderAI (Qwen 3.8 Max) qoder_ai@qoder.com