Repository navigation
Conversation
Closed
Collaborator
Author
|
最终实现已由 #375 完整整合并合入 main;关闭此旧草稿,避免重复合并旧代码。 |
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.
结论
原生 Agent 现在会把完整选区和完整问题放进同一条用户消息发送给模型;没有选区时仍只发送原问题。
根因
StudyAgentRequest的请求链本来就保留完整问题和完整选区。request.question,完全遗漏selectionText,因此模型看不到任何选区。改动
未做
共享文件占用与并行整合
AGENTS.md列出的共享核心文件:无占用。NativeAgentLoop.swift的用户消息入账段和NativeAgentRuntimeTests.swift的假模型检查段;预计在本 PR 合并或关闭后释放。验证
git diff --check:通过。SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk CLANG_MODULE_CACHE_PATH=/private/tmp/weibei-audit-no-silent-truncation-clang-cache SWIFTPM_MODULECACHE_OVERRIDE=/private/tmp/weibei-audit-no-silent-truncation-swiftpm-cache swift build --disable-sandbox --scratch-path /private/tmp/weibei-audit-no-silent-truncation-build:通过。swift test:命令行工具不提供XCTest,无法在本机执行断言;不是产品代码失败。