Repository navigation
fix(chat): tell unanswered output truncation to compact instead of retrying - #968
Conversation
…trying A length stop with no text or tool call has no room for another message. Say so in English, Simplified Chinese, and Traditional Chinese, and offer compaction on the latest unanswered reply.
|
Reviewed. The problem is real. pi clamps each request's output to the room left in the context ( The rest also checks out:
Merged locally with current Optional nit, not blocking: an empty Generated by Claude Code |
Resolve the MessageView props conflict with #968: keep dropping onNavigate (the edit branches on send now) and take the new onCompact / isCompacting / compactError props. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q8e4GL1QSNFveKtnFfP3FZ
* fix(open-in-explorer): authorize the path before looking at it POST stat()ed the requested cwd before the allow-list check, so a path outside the roots answered 400 (a file), 500 (missing) or 403 (a directory) and told the caller whether it exists. Check the allow-list first; isExistingFilePathAllowed() already requires the path to exist. Also translate the new module's comments to English like the rest of the codebase, note that macOS `open` launches .app bundles, and add the route to the AGENTS.md file map. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q8e4GL1QSNFveKtnFfP3FZ * refactor(subagents): share parseNpmSource through lib/npm-source subagents.ts imported plugin-updates.ts only for parseNpmSource, which pulled child_process, semver and the SDK package manager into the session-reader import graph. Move the parser into a dependency-free module that both use. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q8e4GL1QSNFveKtnFfP3FZ * fix(chat): word the unanswered truncation notice for a full context too A length stop with no answer is not always thinking's fault: pi clamps the output to the room left in the context, so a nearly full context can return nothing at all. Name both causes and drop the fixed "medium or below" advice, which is wrong for sessions already on a low level. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q8e4GL1QSNFveKtnFfP3FZ --------- Co-authored-by: Claude <[email protected]>
…#907 agegr#941 agegr#946 agegr#961 agegr#968 agegr#969 agegr#1007 agegr#1008 agegr#1009 agegr#1010) 上游已把我们提前摘取的 agegr#884 / agegr#871 / agegr#996 / agegr#961 原样合并(agegr#961 逐字节相同), agegr#967 与 agegr#963 由上游的 agegr#1009 / agegr#1008 接管。 冲突解决: - demo/ 对齐上游 fe288c0,撤销 agegr#963 对 demo 的两处改动(`@/lib/chat-phase-label` 在 demo/lib 下不存在,会打断 Pages 构建)。 - AGENTS.md:保留我们的 default-project 条目,open-folder 换成上游的 open-in-explorer。 - MessageView.tsx / SessionSidebar.tsx / FileExplorer.tsx:以上游为准, DismissButton 采用上游的独立文件,保留我们的思考卡片与文件管理改动。 - SessionSidebar 移除引用已删函数的旧 agegr#951 工作区按钮(agegr#951 的其他入口另行收尾)。
…trying (agegr#968) * fix(chat): tell unanswered output truncation to compact instead of retrying A length stop with no text or tool call has no room for another message. Say so in English, Simplified Chinese, and Traditional Chinese, and offer compaction on the latest unanswered reply. * fix(demo): keep the demo icon path while adding truncation recovery --------- Co-authored-by: wayne.luo <[email protected]>
* fix(open-in-explorer): authorize the path before looking at it POST stat()ed the requested cwd before the allow-list check, so a path outside the roots answered 400 (a file), 500 (missing) or 403 (a directory) and told the caller whether it exists. Check the allow-list first; isExistingFilePathAllowed() already requires the path to exist. Also translate the new module's comments to English like the rest of the codebase, note that macOS `open` launches .app bundles, and add the route to the AGENTS.md file map. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q8e4GL1QSNFveKtnFfP3FZ * refactor(subagents): share parseNpmSource through lib/npm-source subagents.ts imported plugin-updates.ts only for parseNpmSource, which pulled child_process, semver and the SDK package manager into the session-reader import graph. Move the parser into a dependency-free module that both use. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q8e4GL1QSNFveKtnFfP3FZ * fix(chat): word the unanswered truncation notice for a full context too A length stop with no answer is not always thinking's fault: pi clamps the output to the room left in the context, so a nearly full context can return nothing at all. Name both causes and drop the fixed "medium or below" advice, which is wrong for sessions already on a low level. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q8e4GL1QSNFveKtnFfP3FZ --------- Co-authored-by: Claude <[email protected]>
…trying (agegr#968) * fix(chat): tell unanswered output truncation to compact instead of retrying A length stop with no text or tool call has no room for another message. Say so in English, Simplified Chinese, and Traditional Chinese, and offer compaction on the latest unanswered reply. * fix(demo): keep the demo icon path while adding truncation recovery --------- Co-authored-by: wayne.luo <[email protected]>
* fix(open-in-explorer): authorize the path before looking at it POST stat()ed the requested cwd before the allow-list check, so a path outside the roots answered 400 (a file), 500 (missing) or 403 (a directory) and told the caller whether it exists. Check the allow-list first; isExistingFilePathAllowed() already requires the path to exist. Also translate the new module's comments to English like the rest of the codebase, note that macOS `open` launches .app bundles, and add the route to the AGENTS.md file map. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q8e4GL1QSNFveKtnFfP3FZ * refactor(subagents): share parseNpmSource through lib/npm-source subagents.ts imported plugin-updates.ts only for parseNpmSource, which pulled child_process, semver and the SDK package manager into the session-reader import graph. Move the parser into a dependency-free module that both use. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q8e4GL1QSNFveKtnFfP3FZ * fix(chat): word the unanswered truncation notice for a full context too A length stop with no answer is not always thinking's fault: pi clamps the output to the room left in the context, so a nearly full context can return nothing at all. Name both causes and drop the fixed "medium or below" advice, which is wrong for sessions already on a low level. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q8e4GL1QSNFveKtnFfP3FZ --------- Co-authored-by: Claude <[email protected]>
Summary
lengthwithout text or a tool call, the notice no longer tells the user to send another message. That follow-up hits the same exhausted output budget.Test
node --experimental-strip-types --test components/MessageView.test.mjs