Skip to content

diag(qt): 记录到达会话的输入字节 (#155) - #209

Merged
JavaZeroo merged 1 commit into
mainfrom
diag/qt-input-log
Oct 29, 2026
Merged

JavaZeroo merged 1 commit into
mainfrom
diag/qt-input-log

Conversation

@JavaZeroo

Copy link
Copy Markdown
Owner

内容

给 Qt 终端加可选的输入字节观测 TERMFORGE_QT_INPUT_LOG:键路径成功 model_.send() 时记录 {bytes, hex},与已有的 IME 事件观测互补。默认关闭,不改变发送逻辑。

用它得到的结论(#155 的 Ctrl-C 消费关系)

在同一 VM、同一固定拼音、我们的应用里:

  1. 先组合输入 ni'hao(IME 日志有 5 条 preedit);
  2. 组合态下按 Ctrl-C;
  3. 结果:
    • input.log 根本没有生成 —— 说明没有任何字节被发送到会话(无 03);
    • IME 日志在 ni'hao 之后没有新的 cancel/commit 事件 —— 组合也没有被取消。

即:组合态下的 Ctrl-C 既没有到达我们的 keyPressEvent(没有 03),也没有产生 IME 取消事件,被输入法/系统层吞掉了。这与本 issue 早前 N9 的观察一致("没有 C KeyPress、没有 03")。

边界

Refs #155

…PUT_LOG refs #155

Records the hex of every successful key-path send so an IME experiment can tell whether Ctrl-C produced any byte at all.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 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-29T21:55:36.459942Z b3377ee 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 10773b6 into main Oct 29, 2026
6 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