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 — fix(requirements): 完善筛选选中态并优化首屏加载 by uiliugang · Pull Request #162 · uiliugang/t3code

Conversation

@uiliugang

@uiliugang uiliugang commented Nov 16, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Owner

Problem

需求看板的负责人、项目筛选没有显示当前选中项;自定义负责人还会在列表为空时从菜单中消失。需求列表缺少持久化缓存和首屏预加载,打开时需要等待外部来源响应;本地实时订阅的持续 waiting 标记也会让空列表一直显示加载状态。

评审还发现两个缓存问题:同项目其他来源失败时,已移除来源的旧数据仍可能保留;过期缓存的预加载可能在后台刷新开始前释放读取,导致没有真正发起请求。

Change

  • 复用受控勾选菜单,按环境和项目共同判断选中态,并在没有返回数据时保留当前自定义负责人。归档开关关闭、重开菜单后仍显示正确勾选。
  • 复用现有环境级查询持久化,先展示缓存、后台刷新。部分来源失败时核对当前来源配置,只保留仍配置的来源及有效项目关联,成功返回的新结果优先;来源配置查询或发现失败时保守保留缓存。
  • Web 和移动端在前台空闲时预加载默认第一页,Web 入口悬停和聚焦复用相同查询。读取会等待挂载触发的过期缓存刷新开始,避免提前释放;新鲜缓存不重复请求,正在进行的请求由页面复用,不增加固定轮询。
  • 区分持续运行的实时订阅和首批数据加载,补齐初次加载占位、后台更新反馈及空列表失败重试。
  • 已 rebase 到 main 的 50e707964123,解决 sourceControl.ts 冲突,同时保留主分支的来源控制工具状态、查询和命令,以及本 PR 的需求查询逻辑。

Scope

按本次需求确认的首期范围实施,包含 Web、桌面共用页面及移动端共享数据路径。不修改后端聚合或通信协议,不调整全局缓存时长,不增加依赖。

Verification

  • ./vp run check:changed --concurrency 2 通过:格式、lint、knip、37 个受影响包及依赖包类型检查、74 项测试及 12 项相关 React Compiler 检查。
  • ./vp test run packages/client-runtime/src/state/runtime.test.ts packages/client-runtime/src/state/requirementBoard.test.ts 通过,共 50 项测试。两个评审问题均先验证回归测试失败,再修复;覆盖过期预加载、配置移除、来源发现失败、来源查询失败、项目关联清理和缓存持久化。
  • 最终代码的 ./vp run --filter @t3tools/web build 与 ./vp run --filter t3 build:bundle 均通过。Web 构建仍有大包体积提示,无构建错误。
  • 本轮 T3 内置浏览器验收通过,覆盖 1440×900 和 390×844:移除来源后不再保留其旧需求,仍配置但刷新失败的来源保留缓存;缓存等待期间列表不清空;新鲜缓存悬停不发请求,过期缓存悬停发起刷新,立即进入看板仍仅有两个来源请求,没有重复请求;归档重开、负责人和项目勾选正常,无横向溢出。
  • 来源删除及失败场景使用浏览器内的受控接口响应,不代表真实外部平台发生故障。验收后已恢复请求拦截、时间函数及原缓存,关闭验收页。
  • 首次实现的 scenarios:prove 已验证本地空列表问题:基线 1c8cf5bfa887 无法结束加载,原实现提交 a7f0b85b4dc 正确显示空态,failsOnBase=true、passesOnHead=true。本轮未重跑该历史基线对照,使用上述回归测试和浏览器验收验证新增修复。
  • 首次实现已验收全部项目切换、自定义负责人无结果、缓存恢复及筛选缓存隔离。Android 开发客户端兼容性检查通过,但模拟器返回 DEVICE_IN_USE,未接管其他会话;本轮未完成原生交互验收,移动端类型检查与共享逻辑回归通过。
  • 前后截图及录屏已保留本地。当前环境没有 GitHub 附件上传命令,跳过 PR 附件上传,未提交任何验收图片或录屏。

模型:GPT-5 系列;执行环境:T3 Code / Codex。

Sorry, something went wrong.

Uh oh!

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

All reactions
@github-actions github-actions Bot added size:L vouch:trusted Author is trusted by repo permissions or the VOUCHED list. labels Nov 16, 2026
liugang59 added 2 commits November 16, 2026 19:10
liugang59
fix(requirements): 完善筛选选中态并优化首屏加载
a8663a0
补齐负责人和项目勾选状态,保留空结果下的自定义负责人,并校准多环境项目选中判断。

复用查询持久化与首屏预加载,在刷新失败时保留缓存内容,修复实时订阅导致空列表持续加载的问题。

补充缓存恢复、预加载去重、筛选交互及真实页面空态回归验证。
liugang59
fix(requirements): 修正来源缓存保留和过期预加载
fcf8214
保留失败来源缓存前核对当前配置,移除已取消配置的来源和失效项目关联。来源查询失败时保守保留缓存。

等待挂载触发的过期缓存刷新开始后再读取结果,避免预加载提前释放;补充来源配置和缓存过期回归测试。
@uiliugang
uiliugang force-pushed the lg/requirements-archive-ui-loading-plan branch from a7f0b85 to fcf8214 Compare November 16, 2026 11:31
@github-actions

github-actions Bot commented Nov 16, 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: 50e7079 · PR result: 056b555 · 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(client-runtime): 隔离过期缓存重验证的等待状态
056b555
在缓存层安排重验证时标记 waiting,保留单次读取直到刷新完成,并移除通用查询执行器的额外调度等待。

恢复命令完成时序,修复服务器更新状态和 Relay 刷新的五项 CI 失败;补充过期缓存挂载后立即进入等待态的回归断言。
@uiliugang

uiliugang commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

已推送修复提交 056b555e94f。

Test 日志中的 5 个失败已在修改前本地复现:server.test.ts 的 4 个更新失败状态用例,以及 relay/discovery.test.ts 的刷新请求合并用例。Check 失败来自汇总检查中的 test: failure,没有独立的检查故障。

根因是通用 executeAtomQuery 的额外调度等待改变了命令完成时序。修复移除该等待,改由 revalidateOnMount 在安排过期缓存刷新时立即返回 waiting,让单次读取自然等待刷新完成,同时保留新鲜缓存复用及请求去重。仅修改运行时及现有回归测试两个文件,没有降低断言、跳过测试或修改 CI 配置。

验证:

  • 原 5 项失败和新增等待态断言均先复现失败,再验证通过;4 个相关测试文件共 111 项通过。
  • ./vp run --filter @t3tools/client-runtime test:168 个文件、2194 项测试全部通过。
  • ./vp run check:changed --concurrency 2:格式、lint、knip、37 个包类型检查、74 项相关测试及 12 项 React Compiler 检查通过。
  • ./vp run --filter @t3tools/web build、./vp run --filter t3 build:bundle 均通过;Web 仍有大包体积提示。

本轮未改 UI,未重复浏览器或原生移动端验收。新提交的远端 CI 结果待复验。

模型:gpt-6-astra;执行环境:T3 Code / Codex。

All reactions

Sorry, something went wrong.

Uh oh!

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

@uiliugang
uiliugang merged commit f17e523 into main Nov 16, 2026
30 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:L 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.