Extract floating-panel Answer Outline modules - #2018
Open
0xTotoroX wants to merge 2 commits into
Open
Conversation
0xTotoroX
marked this pull request as ready for review
August 27, 2026 04:08
0xTotoroX
force-pushed
the
codex/stepwise-floating-panel-pr6-outline
branch
from
August 29, 2026 14:00
773c620 to
6b6a029
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.
背景与目标
Answer Outline 负责从当前助手回答中识别标题结构,并提供层级展示、当前回答绑定和页面跳转。此前这些逻辑与 Stepwise 建议、面板交互和共享扫描核心混在同一个注入文件中,标题规则或滚动行为的修改会扩大审查范围。
本 PR 将 Answer Outline 专属逻辑归位到
assets/inject/floating-panel/outline/,明确标题解析、层级处理、导航和视图展示的职责边界。它只增加 Outline 源码片段及源码契约测试,不新增第二套回答扫描或网络请求路径,也不改变当前生产注入组合。变更内容
parser.jsnavigation.jsfeature.jsview.js源码契约测试
fetch()、WebSocket、MutationObserver、浏览器运行时 import/export 和/stepwise/generate。行为边界
crates/codex-plus-core/src/assets.rs,当前生产 bundle 和页面行为保持不变。验证
cargo test -p codex-plus-core --test floating_panel_outline --test cdp_bridge --test bridge_routes:146项通过。cargo check -p codex-plus-core:通过。node --check:通过。2258044)逐字节一致,SHA-256 已核对。git diff --check:通过。upstream/maincommit7385664。提交说明
2fa24dd:Answer Outline 解析、导航、生命周期和视图源码。773c620:Answer Outline 源码契约测试。两个提交分别对应功能源码与测试覆盖,便于独立审查和回退。