GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(usage): 展示按模型的 Token 输出速度并修复移动端显示与图片预览 by uiliugang · Pull Request #198 · uiliugang/t3code

Conversation

@uiliugang

@uiliugang uiliugang commented Nov 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

Problem

会话和用量统计缺少 Token 输出速度,模型榜单无法比较不同模型。Android 限额卡曾裁切百分比,停用提供商仍显示编辑入口;跨环境会话的独立 Markdown 图片下载失败后也无法原地恢复。验证模型速度界面时,桌面内置预览两次未能生成截图;排查中复现了控制管道受阻或断开时的超时。

Change

  • Web、桌面和手机将最近实际执行且成功完成的轮次的平均输出速度显示在对应工作摘要;该轮次不在当前历史窗口时改在会话底部显示。修复 Web 行缓存残留旧速度的问题。计数不完整、失败、中断或回退时不回显旧速度。
  • 「用量 → 总计」与「按模型」分别展示总体及各模型的平均输出速度,按有效轮次的总输出量除以总耗时,不从账单推算。统一 OpenCode 速率样本与用量记录的模型 ID,先按原始模型筛选,再应用别名。混用多个模型且无法拆分的轮次只计入符合筛选条件的总体;无样本的模型不显示速度。
  • 修复手机限额百分比裁切,恢复「剩余」原字号并翻译标准窗口标题;停用的 Cursor 和 Antigravity 隐藏编辑入口,仍可左滑启用。
  • 移动端独立 Markdown 图片下载失败时自动重试一次。手动重试向会话所属环境刷新签名;暂时失败可继续重试,权限不足时不显示入口。SVG 也可原地重试。
  • 桌面预览按顺序写完每条控制命令再发送下一条。即使没有下一次写入,也能检测到控制端关闭,结束进行中的中继,并唤醒等待标签就绪的请求。两个管道只打开一个时,立即释放已打开的一端。

Scope

用量协议新增向后兼容的可选字段。数据库迁移只添加完成时间查询索引,不改写历史记录。提供商适配器、限额计算和文件权限不变;图片修复不改正文混排渲染。截图修复位于服务端与 Electron 的本地通信通道,不改预览工具接口。

Verification

  • 本地 vp run check:changed 通过:35 个包的类型检查、18 个测试文件中的 554 项测试及 React 编译检查通过。此前翻译检查通过。用量回归覆盖 OpenCode 模型筛选和别名、Web 轮次速度缓存失效,以及历史窗口没有对应轮次时的回退显示。
  • 截图通道的 7 项测试通过。独立复审确认初审的 3 个 P2 及 1 个背压测试缺口均已修复,未发现新的 P2 或更严重的问题。
  • 在隔离的 macOS Electron 44 中,使用真实进程管道并放慢读取,诊断页仍返回无障碍树和 1280 × 960 PNG;收到截图请求后仅关闭控制管道,不再写入,也能观察到 WebSocket 关闭。未在 Windows 或 Linux 实测。
  • 此前在桌面和 390 px 浏览器中验证了模型用量展示,并在 Android Pixel 7 验证了限额字号、百分比和跨环境图片。两次内置快照超时发生在截图通道修复前,未上传模型速度页面截图;本轮诊断页不代替该界面截图,也未重新实测原生移动端会话速度。

执行工具:Codex。

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
liugang59
feat(usage): 显示 Provider 平均输出速度并修复手机限额显示
497f008
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M labels Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

All 64 scenario measurements match main.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded 10.5 KiB 10.5 KiB 0 B (0.0%) 12.7 KiB ✅
Codex short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB 0 B (0.0%) 302.7 KiB ✅
Codex long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Codex long turn running, history page HTTP decoded 92.4 KiB 92.4 KiB 0 B (0.0%) 107.4 KiB ✅
Codex long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Codex long turn finished, cold open HTTP decoded 381.5 KiB 381.5 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, socket cold open WebSocket decoded 381.6 KiB 381.6 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, work page HTTP decoded 186.2 KiB 186.2 KiB 0 B (0.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Codex idle thread resume WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell snapshot HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Codex fleet shell subscribe WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Codex fleet shell resume check rows 0 0 0 0 ✅
Codex stale shell reload HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex stale shell reload rows 27 27 0 (0.0%) 27 ✅
Codex stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Codex stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB 0 B (0.0%) 83.0 KiB ✅
Codex stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Codex stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅
Claude short turn resume WebSocket decoded 10.6 KiB 10.6 KiB 0 B (0.0%) 12.7 KiB ✅
Claude short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB 0 B (0.0%) 302.7 KiB ✅
Claude long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Claude long turn running, history page HTTP decoded 93.4 KiB 93.4 KiB 0 B (0.0%) 107.4 KiB ✅
Claude long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Claude long turn finished, cold open HTTP decoded 384.2 KiB 384.2 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, socket cold open WebSocket decoded 384.3 KiB 384.3 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, work page HTTP decoded 188.1 KiB 188.1 KiB 0 B (0.0%) 200.2 KiB ✅
Claude long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Claude idle thread resume WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell snapshot HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Claude fleet shell subscribe WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Claude fleet shell resume check rows 0 0 0 0 ✅
Claude stale shell reload HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude stale shell reload rows 27 27 0 (0.0%) 27 ✅
Claude stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Claude stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB 0 B (0.0%) 83.0 KiB ✅
Claude stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Claude stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅

Baseline: 505c8af · PR result: 7c61a1f · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

liugang59
fix(mobile): 隐藏已停用模型提供商的登录编辑入口
6196035
停用的 Cursor 和 Antigravity 与其他普通停用项一样只显示状态,仍可左滑重新启用。补充启用、停用及 ACP 安装状态的回归覆盖。

执行模型与工具:gpt-6.2-sol / Codex。
@uiliugang uiliugang changed the title feat(usage): 显示 Provider 平均输出速度并修复手机限额显示 feat(usage): 显示 Provider 平均输出速度并修复手机端显示 Nov 20, 2026
liugang59
feat(usage): 在用量总计展示平均输出速度
2e31e23
按完整 Provider 轮次的输出量和耗时汇总,尊重时间、环境及 Provider 筛选。

执行模型与工具:gpt-6.2-sol / Codex。
@github-actions github-actions Bot added size:L and removed size:M labels Nov 21, 2026
@uiliugang uiliugang changed the title feat(usage): 显示 Provider 平均输出速度并修复手机端显示 feat(usage): 展示 Token 输出速度并修复手机端显示 Nov 21, 2026
liugang59 added 2 commits November 21, 2026 09:29
liugang59
fix(usage): 按实际执行顺序展示会话输出速度
0ece871
修复排队轮次乱序完成及长会话重开时显示错误速度的问题;最近执行失败、中断或回退时不回显旧速度。补齐预览库迁移和跨历史窗口的回归测试。

执行工具:Codex。
liugang59
fix(mobile): 恢复跨环境会话图片预览
4058cf3
移动端独立 Markdown 图片在下载失败后自动重试;手动重试向会话所属环境刷新签名,签发暂时失败仍可再次尝试。覆盖签名更新与 SVG 重试。

执行工具:Codex(gpt-6.2-sol)。
@uiliugang uiliugang changed the title feat(usage): 展示 Token 输出速度并修复手机端显示 feat(usage): 展示 Token 输出速度并修复移动端显示与图片预览 Nov 21, 2026
liugang59
feat(usage): 按模型展示平均输出速度
96497ae
按有效轮次的输出量和耗时聚合模型速度,保留筛选和别名语义,并恢复移动端限额标签的原字号。
@uiliugang uiliugang changed the title feat(usage): 展示 Token 输出速度并修复移动端显示与图片预览 feat(usage): 展示按模型的 Token 输出速度并修复移动端显示与图片预览 Nov 21, 2026
liugang59
fix(usage): 修正模型与会话轮次的输出速度展示
6611fb6
统一 OpenCode 速率样本和用量记录的模型标识。将速度放到对应轮次的工作摘要中,修复旧行缓存,并在对应轮次不在当前历史窗口时显示底部摘要。
@github-actions github-actions Bot added size:XL and removed size:L labels Nov 21, 2026
liugang59
fix(preview): 修复桌面截图在控制管道阻塞或断开时超时
7c61a1f
@uiliugang
uiliugang merged commit 8d6fea1 into main Nov 21, 2026
33 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XL vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@uiliugang
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.