Skip to content

fix(progress): 补齐 #67 后 binder 首帧/非TTY LSP + 恢复 pause 契约测 - #68

Merged
Tanya7z merged 2 commits into
mainfrom
cursor/bc-95ca713a-0077-404f-b2de-7a236848b621-9bcb
Jul 24, 2026
Merged

fix(progress): 补齐 #67 后 binder 首帧/非TTY LSP + 恢复 pause 契约测#68
Tanya7z merged 2 commits into
mainfrom
cursor/bc-95ca713a-0077-404f-b2de-7a236848b621-9bcb

Conversation

@cursor

@cursor cursor Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

背景

Push main@dab1ad6(合并 #67)后 ootb success30094461300)。审查 #67 合入后的进度条残余 SOLID 债并提交补丁。

审查(原则标注)

级别 原则 问题
MAJOR LSP #67bindByteProgressToBarstart / 未知→已知重 start 后不再 update → 首帧卡在 0;非 TTY 收尾若只有一次 finish 回调会丢最终刻度
MAJOR LSP createTerminalProgress.start 非 TTY logger 写死 进度 0% (0/${total}),忽略 startValue(与 ProgressHandle.start 契约不一致;重 start 修总量时更明显)
MAJOR DRY/LSP #67 删掉 pause/resume 嵌套契约测,换成无意义 Writable 烟测 → 注册表契约失覆盖

改动

  1. bindByteProgressToBarstart / 重 start始终 update(对齐 fix(pack-update): 补齐未知总量进度条 LSP + DRY bindOk/touchBinding #67 前首帧行为 + 非 TTY)
  2. createTerminalProgress.start:非 TTY logger 按 startValue 算百分比
  3. 恢复 pauseAllProgress/resumeAllProgress 嵌套测;补齐首帧 update / 非 TTY startValue 断言

验证

  • npm test -w @sfmc-bds/cli(19 pass)
  • npm run typecheck -w @sfmc-bds/sdk

未改

  • ServiceId pack-manager 注册(主路径已不 spawn)
  • ootb 强制跑 pack-update / eslint-plugin tests
  • ProgressHandle.setTotal(仍用重 start;有独立 setTotal 时可再收敛)
Open in Web View Automation 

#67 重 start 后省略 update,首帧卡在 0;非 TTY logger 写死 0% 忽略
startValue。始终 update + start 尊重 startValue;恢复 pause/resume 测。

Co-authored-by: Shiroha <Tanya7z@users.noreply.github.com>
@Tanya7z
Tanya7z marked this pull request as ready for review July 24, 2026 13:14
@cursor

cursor Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@Tanya7z
Tanya7z merged commit f4a6ac2 into main Jul 24, 2026
1 check passed
Tanya7z added a commit that referenced this pull request Jul 24, 2026
…848a-ef433640bd8d-211c

fix(progress): ProgressHandle.setTotal + 首帧/非TTY DRY(#68 后)
@Tanya7z
Tanya7z deleted the cursor/bc-95ca713a-0077-404f-b2de-7a236848b621-9bcb branch July 25, 2026 12:47
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.

2 participants