Extract floating-panel Stepwise feature modules - #2009
Open
0xTotoroX wants to merge 2 commits into
Open
Conversation
0xTotoroX
marked this pull request as ready for review
August 26, 2026 19:55
0xTotoroX
force-pushed
the
codex/stepwise-floating-panel-pr5-stepwise
branch
from
August 29, 2026 14:00
434e4d5 to
15d696e
Compare
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.
背景与目标
Stepwise 的页面侧职责包括建议 payload 解析、标签和摘要生成、去重、请求并发控制、过期结果保护,以及将用户选择填入当前会话的 Composer。此前这些职责仍位于单一注入核心中,容易与共享回答上下文、面板交互和 Answer Outline 混在一起审查。
本 PR 将 Stepwise 专属逻辑归位到
assets/inject/floating-panel/stepwise/,明确“共享运行能力”和“建议功能”的边界。它只增加 Stepwise 功能源码片段及源码契约测试,不新增模型协议实现,也不改变当前生产注入组合。变更内容
suggestions.jsgeneration.js/stepwise/generate。源码契约测试
bridgeCall()调用后端路由。fetch()、WebSocket、浏览器运行时 import/export 和 Outline 逻辑进入本模块。行为边界
crates/codex-plus-core/src/assets.rs,当前生产 bundle 和页面行为保持不变。stepwise.rs的 Chat Completions、Responses 或 Anthropic Messages 协议适配。/stepwise/generate路由。验证
cargo test -p codex-plus-core --test floating_panel_stepwise --test cdp_bridge:114项通过。cargo test -p codex-plus-core --test bridge_routes:32项通过。cargo check -p codex-plus-core:通过。node --check:通过。2258044)逐字节一致,SHA-256 已核对。git diff --check:通过。upstream/maincommit7385664。提交说明
d188060:Stepwise 建议处理和生成提交源码。434e4d5:Stepwise 源码契约测试。两个提交分别对应功能源码与测试覆盖,便于独立审查和回退。