Repository navigation
diag(shell): 输出轨迹记录几何切换 (#194) - #221
Merged
Merged
Conversation
Each applied resize now logs the previous and new grid with a timestamp, so a repaint batch can be placed on either side of the switch instead of being inferred.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
内容
在
TERMFORGE_OUTPUT_TRACE里增加几何切换记录:{"schema":"termforge-resize-trace-v1","terminal":1,"t_ms":224742578,"old_columns":80,"old_rows":24,"columns":111,"rows":7}即每次
size_changed()应用新网格时,记录切换前后的尺寸与时刻。为什么需要
#194 的机制是"重绘按旧几何生成、按新几何消费"。此前输出轨迹只记录消费时刻的网格,无法把重绘批次与切换事件对上;有了这条记录,就能直接判断某个重绘批次是在切换之前还是之后被消费。
本地验证
test_actions通过,轨迹里出现 10 条 resize 记录,例如:边界
TERMFORGE_OUTPUT_TRACE时写入;Refs #194