Skip to content

diag(shell): 输出轨迹记录几何切换 (#194) - #221

Merged
JavaZeroo merged 1 commit into
mainfrom
diag/resize-trace
Oct 30, 2026
Merged

JavaZeroo merged 1 commit into
mainfrom
diag/resize-trace

Conversation

@JavaZeroo

Copy link
Copy Markdown
Owner

内容

在 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 记录,例如:

t=224742578 terminal1 80x24 -> 111x7
t=224743187 terminal1 111x7 -> 112x7

边界

Refs #194

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T01:44:21.237621Z 5ab207c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@JavaZeroo
JavaZeroo merged commit d6e4748 into main Oct 30, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant