Skip to content

chore(drawer): remove the unreachable In-App Notices - #300

Merged
Tarquinen merged 1 commit into
devfrom
remove-in-app-notices
Nov 28, 2026
Merged

Tarquinen merged 1 commit into
devfrom
remove-in-app-notices

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

Removes In-App Notices: the drawer button's "Done" / "Needs your input" label for other sessions, plus its setting, sounds, haptic, announcement and strings.

Nobody could reach it. The mode defaults to off, and the only place to change it is the Notifications settings page, which only shows when push notifications are set up. No released build has the Firebase configuration that needs. Nothing a user can see changes: system notifications keep the banner behaviour they have with the mode off, and the drawer button and its dot stay.

Checked with scripts/translations.py all and the full scripts/check.sh on the Android VM.

PR #297 also removes the settings row and its strings, so whichever merges second needs a small rebase.

Remove In-App Notices: the drawer button's "Done" / "Needs your input"
label for other sessions, its mode and Settings row, its sounds, haptic
and TalkBack announcement, and its strings in every language.

Nobody could turn it on. The mode (experimental-in-app-notices) defaults
to off, and its only writer is the In-App Notices row on the Notifications
settings page. That page only shows when push notifications are
available, which needs a Firebase configuration no released build has.

Behaviour stays as it is with the mode off:
- System notifications still post as a heads-up banner for every session
  but the visible one, so NotificationPresentation.ListOnly and the
  drawer-label and mode readers on SessionNotificationsClient are gone.
- The drawer button, its unread/attention dot, delivered-notification
  removal, the app badge, Catch Up and its sounds are unchanged.

Tests that only covered notices are removed; the system test keeps its
needs-input case. Parity rows now say In-App Notices is not in the app.

Verified: python3 scripts/translations.py all, scripts/check.sh for
:core :feature:session :feature:settings :feature:system :feature:drawer,
then the full scripts/check.sh (all on the Android dev VM), all passing.
@Tarquinen
Tarquinen force-pushed the remove-in-app-notices branch from 344492d to eed7118 Compare November 24, 2026 17:30
@Tarquinen
Tarquinen enabled auto-merge (squash) November 24, 2026 17:32
@Tarquinen
Tarquinen disabled auto-merge November 24, 2026 17:32
@Tarquinen
Tarquinen merged commit 0efffc7 into dev Nov 28, 2026
2 checks passed
@Tarquinen
Tarquinen deleted the remove-in-app-notices branch November 28, 2026 00:29
Tarquinen added a commit that referenced this pull request Nov 28, 2026
Push notifications no longer post silently for an In-App Notices mode:
PushNotifications drops the silent flag, since presentation() is now only
None (the visible session) or Banner. docs/parity/system.md keeps this
branch's push rows and takes dev's wording that In-App Notices is not in
the app.

Verified: scripts/check.sh (all modules) on the Android VM.
technicalheist pushed a commit to technicalheist/opencode-android that referenced this pull request Nov 28, 2026
…eaming (anomalyco#236)

* perf(session): rebuild transcript stamps per minute, not per second

The projection cache keyed its time stamps on the current second, so
while a reply streamed, the first batch of every new second missed the
streaming fast path and rebuilt every entry, the stamps and the
new-messages mark on the main thread. Stamps only show minutes (and
Today turns into Yesterday on a minute), so the key is now the minute,
or the second while the last prompt has no time of its own and may
read as sent now. Ports iOS anomalyco#300 (4c26741a).

Measured on the VM's JVM with real-format IDs: a streamed batch costs
14-95 us; the once-a-second rebuild cost 0.24 ms (1,000 rows) to
1.5 ms (6,000 rows). That rebuild now happens once a minute.

Verified: ported iOS stampsRebuildOnTheMinuteNotTheSecond into
TranscriptBenchmarkTests (70 one-second batches rebuild once); it fails
on dev's code. Full scripts/check.sh on the Android VM.

* fix(session): keep second-level stamps for a prompt from a server ahead

A server whose clock is ahead of the phone's mints prompt IDs that read
as now. While that lasts, the prompt's pause stamp can cross its
one-hour threshold on any second, and keying by the minute held it back
until the next minute. Such a prompt now keys by the second, like an
untimed one; this differs from iOS, which only checks untimed prompts.

Tests: the stamp tests move to their own Robolectric class
(TranscriptStreamWorkTests, same file) so the two older tests stay plain
JVM. The rollover test asserts the one rebuild lands on second 60; new
tests cover an untimed last prompt (rebuilds each second, then minute
keying once it has a time) and the skewed-server pause stamp. ID
formatting uses Locale.ROOT. Parity: Tests table row for
TranscriptStreamWorkTests.swift, row sentence notes the difference.

Verified on the Android VM: the new tests pass; dev's per-second key,
the previous commit's untimed-only rule and an unconditional minute key
each fail at least one of them. Full scripts/check.sh.
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