Skip to content

docs(research): 原版合成会话驱动协议 (#155) - #181

Merged
JavaZeroo merged 1 commit into
mainfrom
research/session-driver
Oct 29, 2026
Merged

JavaZeroo merged 1 commit into
mainfrom
research/session-driver

Conversation

@JavaZeroo

Copy link
Copy Markdown
Owner

内容

把最近几轮实测出的原版合成会话驱动协议写进既有研究记录(docs/research/windterm-synthetic-session-uia.md):

  1. 双击组展开(UIA 无 ExpandCollapse)→ 单击叶 + Enter 打开会话;
  2. 会话命令必须是可在 WindTerm 内长驻的进程(原 profile 的 qt_ime_input_test.exe 需要自有 Job supervisor,会 exit 2);
  3. 注入 VT 序列前必须对 stdout 启用 ENABLE_VIRTUAL_TERMINAL_PROCESSING,否则 ESC[?1049h 显示为字面文本;
  4. 阶段同步用"写标记 → 等外部触发文件 → 下一阶段",不要用固定延时;
  5. 像素读取:Windows OCR 的 word 矩形可定位文字(实测 ALTMARK 在 (402,200),终端正文在 y≈200,而非 UIA TerminalView 矩形处),但普通截图的文字像素被 ClearType 亚像素抗锯齿染色,精确颜色应改用纯色块采样。

已实测 1049h 隐藏主屏、1049l 恢复主屏。文末记录局限(会话打开耗时浮动、纯色块协议尚未取得可用帧)。

边界

Refs #155 #126

Documents the verified bring-up sequence: expand the collapsed group, click and press Enter, a long-lived session command, VT output mode before injecting 1049, file-triggered phases, and OCR word rectangles with the ClearType colour caveat.
@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-29T12:39:21.147605Z 120de99 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 87bf48b 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