Skip to content

fix(companion): add visible subtitle return to call - #73

Merged
zts212653 merged 2 commits into
mainfrom
fix/f317-subtitle-return
Oct 2, 2026
Merged

zts212653 merged 2 commits into
mainfrom
fix/f317-subtitle-return

Conversation

@zts212653

@zts212653 zts212653 commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • add a visible 返回通话 action to both compact and expanded subtitle views
  • restore the persistent call card without changing call, microphone, screen-share, or typed-draft state
  • publish the verified renderer as @clowder-ai/companion@0.1.0-alpha.19 with exact catalog identity

Original finding

Accepted source: thread_mu2fdr0521qiinkm#0001790939909217-000845-76e5f407

这个字幕模式 我没找到变回这个的。

The target shown by the CVO is the persistent call card. Expand/collapse remains a separate subtitle-height control.

Risk and ownership

  • Behavior: user-visible view transition; guarded by RED→GREEN unit, package, and Chromium tests.
  • Data: none.
  • Security: none.
  • Contract: no public command/schema change; package/catalog identity advances to alpha.19.
  • Irreversible: none in this PR. Registry publication remains post-merge and must match the frozen bytes.
  • Architecture cell: companion desktop surface / Host-bound panel projection.
  • Map delta: none.
  • Why: this adds one renderer navigation action; Host remains the sole call/media authority.
  • Canonical source: packages/companion/src/surface.mjs and packages/companion/src/pet-controls.mjs.
  • Claim guard: history-surface.test.mjs proves return preserves call/mic/share/draft and emits no stop/close/microphone command; panel-layout.browser.mjs proves the control is visible and unclipped in compact/expanded narrow shared-call states.

Verification

  • fixed Node 24.18.0, npm 11.16.0, zlib 1.3.1-e00f703
  • companion unit tests: 153/153 pass
  • companion lint/build: pass
  • Chromium layout journey: 5/5 pass at 460px, including shared-call compact/expanded return and recovering-state four-edge containment
  • reviewer horizontal-clipping probe: 0/2 RED on b23df96 → 2/2 GREEN on 6d47f2f
  • pnpm test:fresh-consumer: pass
  • pnpm catalog:check: pass
  • node --test scripts/desktop-window-consumer.test.mjs: 1/1 pass
  • deterministic canonical repack: byte-identical across repetitions
  • actual renderer journey: call → subtitles → return, call/mic/share/draft unchanged; no console/page errors
  • screenshots: /tmp/cat-cafe-evidence/f317-subtitle-return/ and /tmp/cat-cafe-evidence/pr73-author-fix/

Frozen artifact

  • package: @clowder-ai/companion@0.1.0-alpha.19
  • archive: /tmp/f317-subtitle-return-alpha19-r3.QKuaMj/clowder-ai-companion-0.1.0-alpha.19.tgz
  • size: 12,510,364 bytes; unpacked 12,705,673; 61 files
  • SHA-256: 972c051624a6cf0109856994181c0d18f7011048647c9577607c68551894d711
  • SHA-1: 0f3a61ce39b606dae4f855a6a6ed3ddbb99074dc
  • SRI: sha512-8z1dZ4qLtSMBw9vEwpXY4xDOfO2tjD+SXeY5QkusMQRu1/vIErf9y5osR1KjT5UdsHkaosS/H48XoJxW+iD/FA==

Concurrency note

Draft PR #54 also touches companion metadata/catalog and currently carries alpha.18. Alpha.19 is unoccupied; its owner was notified. Any later merge of #54 must preserve this user-visible return action and reconcile catalog history rather than overwrite the newer surface.

Why: A discoverable subtitle exit must restore the persistent call bar without mutating the active call, microphone, sharing target, or typed draft; publish the verified renderer as an exact catalog-pinned alpha.19 artifact.

[小太阳·砚砚/gpt-5.6-sol🐾]

Thread-Context: threadId=thread_muj2oyola5htyhrm catId=codex-sol
Why: A recovering call carries both connection truth and media controls; place the full recovery copy on its own wrapping row and guard all four panel edges so return, microphone, expand, and hang-up stay visible at compact and expanded heights.

[小太阳·砚砚/gpt-5.6-sol🐾]

Thread-Context: threadId=thread_muj2oyola5htyhrm catId=codex-sol
@zts212653
zts212653 marked this pull request as ready for review October 2, 2026 12:19
@zts212653
zts212653 requested a review from mindfn as a code owner October 2, 2026 12:19
@zts212653
zts212653 merged commit 943c230 into main Oct 2, 2026
2 checks passed
@zts212653
zts212653 deleted the fix/f317-subtitle-return branch October 2, 2026 12:32
@zts212653

Copy link
Copy Markdown
Owner Author

Release truth:

  • PR merged as 943c23031b50ad438cfdcff7bc61d82c84c65dee.
  • Main workflow 37006055277: validation and npm publish both succeeded.
  • Published @clowder-ai/companion@0.1.0-alpha.19; npm next points to alpha.19.
  • Registry archive was downloaded and compared byte-for-byte with the frozen candidate: MATCH.
  • SHA-256: 972c051624a6cf0109856994181c0d18f7011048647c9577607c68551894d711
  • SHA-1: 0f3a61ce39b606dae4f855a6a6ed3ddbb99074dc
  • SRI: sha512-8z1dZ4qLtSMBw9vEwpXY4xDOfO2tjD+SXeY5QkusMQRu1/vIErf9y5osR1KjT5UdsHkaosS/H48XoJxW+iD/FA==

Host admission and the real installed journey remain explicit downstream work; publication alone is not a runtime-loaded acceptance claim.

[小太阳·砚砚/gpt-5.6-sol🐾]

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