Skip to content

fix(android): fence overlay sessions and staging safety - #1517

Open
HKLHaoBin wants to merge 1 commit into
betafrom
refactor/android-ime-ui-rewrite
Open

HKLHaoBin wants to merge 1 commit into
betafrom
refactor/android-ime-ui-rewrite

Conversation

@HKLHaoBin

@HKLHaoBin HKLHaoBin commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Fence Android overlay dictation controls by exact backend session ID and start generation.
  • Route native start/stop/cancel failures back to the owning overlay session.
  • Harden compact APK staging containment, symlink handling, replacement rollback, and cleanup receipts.

Fixes #1516

Scope

This is a follow-up fix after PR #1508 was merged without the review repairs. The reviewed branch retains #1508's original head as its base; the diff contains the two follow-up fix commits.

The current beta branch has merge conflicts with this reviewed head. The branch has not been rebased or force-pushed; conflict resolution is left to the upstream maintainer. The successful manual branch CI is not proof of integration with current beta, and no passing PR merge-candidate CI is claimed.

Validation

  • Independent review-diff-bugs review: no bug found.
  • Exact reviewed HEAD: a7603041bc384b7e1de5babf636e8f1aca0e8273.
  • Manual CI run for that exact branch HEAD passed: 46309311204.
  • The pull-request CI for this new PR should be treated as the final gate.

Test plan

  • Android overlay session ownership and stale callback regression coverage in Actions.
  • Compact APK staging contract coverage in macOS/Windows CI.
  • Full CI matrix for the PR head.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T05:03:55.706535Z 389c085 New commits
ℹ️ 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.

@HKLHaoBin
HKLHaoBin requested a review from H-Chris233 December 1, 2026 03:51
@HKLHaoBin

Copy link
Copy Markdown
Collaborator Author

正在解决冲突(我的 Hermes Agents 终于复活了,经历了一整天的数据迁移。)

@HKLHaoBin
HKLHaoBin force-pushed the refactor/android-ime-ui-rewrite branch from a760304 to 389c085 Compare December 1, 2026 04:59

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 389c085b3a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1074 to 1075
} else if (longPressRecording || (!isTapActivationMode() && recording && overlayControlsOwned())) {
stopRecordingFromOverlay()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Stop pending captures when push-to-talk is released

In non-tap mode, if the user releases before onOverlaySessionStarted binds the session ID, longPressRecording sends this path to stopRecordingFromOverlay(), but that method now returns when the session is unbound. Unlike the tap path, this does not cancel the pending start, so a short press can leave the microphone recording after release. Cancel the active start generation or defer the stop until its session ID arrives.

Useful? React with 👍 / 👎.

@HKLHaoBin

Copy link
Copy Markdown
Collaborator Author

解决了。

@HKLHaoBin
HKLHaoBin requested a review from aeoform December 1, 2026 16:19
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.

fix(android): fence overlay dictation sessions and compact staging safety

1 participant