Skip to content

fix(mobile): side chats can be deleted from the phone - #45131

Merged
juliusmarminge merged 2 commits into
mainfrom
factory/issue-45105
Nov 28, 2026
Merged

juliusmarminge merged 2 commits into
mainfrom
factory/issue-45105

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

On the Android and iOS apps there was no way to delete a side chat: its chip in the parent thread's "Side chats" row only opened it, and side chats don't appear in the thread list. Long-pressing a side chat chip now opens a menu with "Delete side chat", which asks for confirmation and deletes it, as the thread list's Delete does.

  • ThreadSideChatsRow wraps each chip in the app's long-press Menu and calls confirmDeleteThread from useThreadListActions; a tap still opens the side chat.
  • Screen readers get the same "Delete side chat" action on the chip.
  • Each mobile catalog gains the one generated string, with the translations web already uses for it.

Fixes #45105

Reproduction on main

Commit 15e7c2e (origin/main). Started T3CODE_DEV_SEED=0 vp run dev (fresh DB) and Metro (vp run dev:client), installed the dev client with vp run mobile:install android --session on a pooled Pixel 9 emulator (Android API 36), and paired it to the dev server. On web against the same server, with the Replay (dev) provider ('Multi turn'), sent 'Hello main thread', then /side Side question for repro; the web side chat pane showed 'Add to chat', 'Delete side chat' (trash) and 'Close side chat'. On Android: the home list showed only the parent thread (the side chat is hidden). Opening the parent showed the 'Side chats' row with one chip, whose only accessibility action is 'Open side chat Reproduction Side Question'. Long-pressing the chip just opened the side chat, with no menu. The side chat header's interactive elements were only 'Navigate up', 'Open files', 'Git controls' and 'Terminal'. The Git controls sheet offers only branch, commit, review, merge back and more, with no delete. Navigating up returned to the parent, where the chip was still in the 'Side chats' row. There is no way to delete or close the side chat from the Android app.

Evidence

Android Pixel 9, API 36, portrait 1080x2424, light theme; separate fresh databases and Metro bundles for each commit. Seed Main thread with Replay (dev), Multi turn and Hello main thread. On Android send /side Side question for repro, return to the parent, tap the side-chat chip, return, then long-press it. Base opens the side chat without a delete menu and leaves its chip present. Head offers Delete side chat; confirming Delete removes the chip while preserving the parent. Environment subtitles are redacted.

Before After
7ef2893c88 5a312edac5
Android interaction recording Android interaction recording
Before: long-press opens the side chat After: long-press offers Delete side chat
Before: chip remains in parent After: side chat removed

Deletion confirmation · Executed seed script · Interaction command recipe

Not shown:

  • The custom accessibility delete action was not exercised with TalkBack; verification used touch long-press.
  • iOS behavior and translated menu labels were not exercised; this proof targets the reported Android flow.

Tests

  • vp run i18n:generate (apps/mobile): its output matched the committed catalogs' keys and values; only the key order differed
  • vp run i18n:check: passed (catalogs match source in web, mobile, desktop)
  • vp run check:changed: passed (format, lint, knip, typecheck, react compiler, related tests 6 passed)
  • PR CI on 5a312ed: all 36 checks passed
  • On a pooled Pixel 9 emulator (Android API 36) against a fresh dev server with the Replay (dev) provider: after /side from the phone, long-pressing the chip showed 'Delete side chat', the confirm dialog appeared, and Delete removed the side chat and the Side chats row

Not in this change

  • The side chat's own header on mobile (Files, Git, Terminal) still has no delete or close action; this fix puts the action on the chip in the parent's Side chats row.
  • The mobile confirm dialog reuses the thread list's 'Delete thread?' text rather than web's side-chat-specific wording.
  • Main's mobile i18n catalogs are in a different key order than vp run i18n:generate writes (same content), so regenerating reorders about 140 keys per locale; left for a separate change.

Who did the work

  • Written by Claude Opus 5.5, in Claude Code
  • Reviewed by GPT-6.1 Sol, in Codex, and by Claude Opus 5.5, each on its own
  • Proof captured by GPT-6.1 Sol and checked by Claude Opus 5.5

Run by the t3code factory in T3 Code.

juliusmarminge and others added 2 commits November 28, 2026 20:34
A side chat chip in the parent thread's "Side chats" row only opened the side
chat, so a side chat made on mobile could only be removed from web or desktop.
Long-pressing a chip now offers "Delete side chat", which confirms and deletes
it through the thread list's existing delete action. Screen readers get the
same action on the chip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ts it

The "Delete side chat" catalog entry now comes from `vp run i18n:generate`
and sits at the position the generator gives it, next to the other side
chat strings. Unrelated keys keep their existing order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The side-chat row now offers a delete action through a long-press menu and an accessibility action. Translation files add the action label in ten languages.

Changes: Side-chat deletion

Layer / File(s) Summary
Add side-chat delete actions
apps/mobile/src/features/threads/ThreadSideChatsRow.tsx, apps/mobile/src/i18n/translations/{de,en,fr,ja,ko,pl,pt-BR,ru,sv,zh}.json
Each side-chat button now offers a destructive delete action in its long-press menu and a matching accessibility action. Both invoke confirmDeleteThread. Translation files add the delete-action label.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature · Severity of issue fixed: Low

Suggested reviewers: yash-singh1

Merge Risk: Minimal · up to 5a312

This adds a long-press delete action for side chats on mobile, reusing the existing confirmation and delete flow. No concrete risk was found, and the change is low-risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(mobile): side chats can be deleted from the phone" matches the main change: adding a long-press menu with a Delete side chat action to the side chat chip on mobile. It is a conventional…
Linked Issues check Passed Issue #45105 asks for a way to delete a side chat in the Android app, for example a long-press menu on the chip in the parent's 'Side chats' row. At head, ThreadSideChatsRow.tsx wraps each side-chat c…
Out of Scope Changes check Passed The reviewed changes are limited to ThreadSideChatsRow.tsx and one added 'Delete side chat' string in each mobile translation catalog (+1/-0 per locale, per the summary). The row change directly imple…
Description check Passed The description follows the repository template closely. It has a clear Problem statement (no way to delete a side chat on Android/iOS), a Change section that explains the long-press Menu wrapper and …
Full details: Title check

Explanation

The title "fix(mobile): side chats can be deleted from the phone" matches the main change: adding a long-press menu with a Delete side chat action to the side chat chip on mobile. It is a conventional commit title in plain language and names the platform and the feature. It does not cover the accessibility action or translations, which is acceptable.

Full details: Linked Issues check

Explanation

Issue #45105 asks for a way to delete a side chat in the Android app, for example a long-press menu on the chip in the parent's 'Side chats' row. At head, ThreadSideChatsRow.tsx wraps each side-chat chip in a Menu with shouldOpenOnLongPress and a destructive 'Delete side chat' action. The action calls confirmDeleteThread(sideChat) from useThreadListActions. The chip also exposes a 'delete' accessibility action with the same handler. The chip's onPress still calls openLinkedThread, so tapping still opens the side chat. The issue allows either a header action or a chip menu, so the chip menu satisfies the coding requirement. The 'Delete side chat' string is added to the mobile catalogs. The PR description's manual Pixel 9 test is not independently verified here, and the Evidence section is still pending. Those items are not coding requirements. Side chat header actions are not required because the issue offers the chip menu as an alternative.

Full details: Out of Scope Changes check

Explanation

The reviewed changes are limited to ThreadSideChatsRow.tsx and one added 'Delete side chat' string in each mobile translation catalog (+1/-0 per locale, per the summary). The row change directly implements the linked issue's chip-menu requirement. The reuse of useThreadListActions keeps the delete flow consistent with the thread list. The catalog additions are required for the new translatable string. The PR description states that the key-order reordering is not part of this change, and the summary shows no reordering hunks. No unrelated change was found in the summary. The header-action gap and the 'Delete thread?' confirm wording are documented scope limits, not out-of-scope changes.

Full details: Description check

Explanation

The description follows the repository template closely. It has a clear Problem statement (no way to delete a side chat on Android/iOS), a Change section that explains the long-press Menu wrapper and the use of confirmDeleteThread, a Scope section that links the issue (#45105), and a detailed Verification section with reproduction steps on main, before/after evidence, and test commands with results. It also states what was not verified (TalkBack, iOS, translated labels) and ends with the authoring agent and models. The Scope section does not explicitly justify the change as a bug fix rather than a feature, but the linked issue describes a missing capability, so the framing is a minor gap. Overall the description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 5cd015b and 5a312ed.

Files selected for processing: 12

  • apps/mobile/src/features/threads/ThreadSideChatsRow.tsx
  • apps/mobile/src/i18n/translations/de.json
  • apps/mobile/src/i18n/translations/en.json
  • apps/mobile/src/i18n/translations/es.json
  • apps/mobile/src/i18n/translations/fr.json
  • apps/mobile/src/i18n/translations/ja.json
  • apps/mobile/src/i18n/translations/ko.json
  • apps/mobile/src/i18n/translations/pl.json
  • apps/mobile/src/i18n/translations/pt-BR.json
  • apps/mobile/src/i18n/translations/ru.json
  • apps/mobile/src/i18n/translations/sv.json
  • apps/mobile/src/i18n/translations/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@juliusmarminge
juliusmarminge merged commit cac54a9 into main Nov 28, 2026
37 checks passed
@juliusmarminge
juliusmarminge deleted the factory/issue-45105 branch November 28, 2026 21:18
imetn added a commit to imetn/t4code that referenced this pull request Nov 29, 2026
…, web/desktop, sidebar perf)

Ports 38 selected upstream PRs from v0.1.14-nightly.20261128.5399 while preserving all T4 Code locked customizations, zero-telemetry stance, and self-hosted infrastructure:
- Mobile (5): pingdotgg#45003, pingdotgg#45131, pingdotgg#45106, pingdotgg#44947, pingdotgg#45108
- Server & Agents (11): pingdotgg#45102, pingdotgg#31357, pingdotgg#41766, pingdotgg#45078, pingdotgg#45152, pingdotgg#44922, pingdotgg#45137, pingdotgg#30062, pingdotgg#45058, pingdotgg#34051, pingdotgg#31293
- Web & Desktop (21): pingdotgg#45049, pingdotgg#45023, pingdotgg#45032, pingdotgg#45051, pingdotgg#45035, pingdotgg#45080, pingdotgg#45034, pingdotgg#45076, pingdotgg#45132, pingdotgg#45044, pingdotgg#45167, pingdotgg#45168, pingdotgg#30170, pingdotgg#45081, pingdotgg#45046, pingdotgg#45084, pingdotgg#45085, pingdotgg#45104, pingdotgg#45013, pingdotgg#45043, pingdotgg#45074
- Optional sidebar perf graft (1, user-approved): pingdotgg#45026 (useSidebarMobile)

Also addresses independent pre-merge review catches (inline code protection in markdown links, Object.hasOwn guard for custom run stop reasons, and revisioned asset URL refresh for workspace images).
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Nov 29, 2026
## What's Changed
* fix(server): scheduled tasks keep their original creation source when updated by @only21mil in pingdotgg/t3code#45031
* fix(web,mobile): queued-message edits save /usage-limits as text by @viktorce in pingdotgg/t3code#45013
* fix(web): refreshing workspace files reloads open large file previews by @only21mil in pingdotgg/t3code#45035
* fix(web): Files panel Retry clears errors from collapsed folders by @only21mil in pingdotgg/t3code#45046
* fix(server): overloaded-machine warnings never list a busy process as 0 cores by @iamshadmantaqi in pingdotgg/t3code#45045
* fix(web): copied chat text keeps plain closing brackets so math rendering does not pick them up by @iamshadmantaqi in pingdotgg/t3code#45043
* fix(web): Cmd/Ctrl+A in table and large text previews selects only the file by @iamshadmantaqi in pingdotgg/t3code#45044
* fix(devices): Test connection says when Node or npm is missing on an SSH host by @watashiwaaniket in pingdotgg/t3code#33198
* fix(web): image preview no longer closes when a press is dragged across its edge by @iamshadmantaqi in pingdotgg/t3code#45051
* fix(cli): select the linked project for files that do not exist yet by @only21mil in pingdotgg/t3code#45054
* fix(server): old-log cleanup removes deleted threads' provider event logs by @juliusmarminge in pingdotgg/t3code#45058
* fix(web): Copy as CSV keeps values under their headers when cells are merged by @iamshadmantaqi in pingdotgg/t3code#45056
* fix(server): refuse worktrees from ancestor repositories by @voltcrash in pingdotgg/t3code#31293
* fix(web): share hover delays between adjacent subagent previews by @brandon-julio-t in pingdotgg/t3code#34145
* fix(server): search snippets do not start with a detached mark or skin tone by @iamshadmantaqi in pingdotgg/t3code#45061
* fix(server): threads launched without a branch record the checkout's by @radomirml in pingdotgg/t3code#34051
* fix(server): avoid completion alerts before delegated work resumes by @AkiVonAkira in pingdotgg/t3code#31357
* fix(server): sessions imported from a reftable worktree keep their real branch by @iamshadmantaqi in pingdotgg/t3code#45062
* fix(web): hide Copy contents when a large text attachment fails to authorize by @only21mil in pingdotgg/t3code#45066
* fix(web): image preview size follows the app language by @iamshadmantaqi in pingdotgg/t3code#45067
* fix(client): a delivered queued message hidden by an old cache shows again by @EtanHey in pingdotgg/t3code#41766
* fix(client-runtime): highlight attached short inline scripts for python, perl, and ruby by @only21mil in pingdotgg/t3code#45063
* fix(server): preserve trailing history when Windows ConPTY starts a terminal by @birdringxD in pingdotgg/t3code#45048
* fix(client-runtime): an approved step no longer reads "and used 1 tool" by @AymanKhan9 in pingdotgg/t3code#45074
* fix(web): refreshing workspace files reloads images in large Markdown previews by @iamshadmantaqi in pingdotgg/t3code#45076
* fix(web): restore highlighted stashed prompt on Enter from stash badge by @only21mil in pingdotgg/t3code#45081
* fix(server): t3 update no longer says a service with an unreadable home serves another one by @iamshadmantaqi in pingdotgg/t3code#45082
* fix(web): refreshing workspace files reloads open PDF previews by @only21mil in pingdotgg/t3code#45080
* fix(server): re-importing a deleted Claude Code or Codex session brings its thread back by @juliusmarminge in pingdotgg/t3code#45078
* fix(scripts): dev runner skips a port the OS reserves instead of stopping by @NickoGNS in pingdotgg/t3code#45075
* fix(web): a lone file read shows its path relative to the workspace by @AymanKhan9 in pingdotgg/t3code#45085
* fix(client-runtime): PR diff order follows the source beside a test, not a same-named one elsewhere by @iamshadmantaqi in pingdotgg/t3code#45077
* fix(shared): avoid splitting combining marks when truncating by @only21mil in pingdotgg/t3code#45086
* fix(client-runtime): refreshing the issue list keeps pages loaded with Load more by @juliusmarminge in pingdotgg/t3code#45084
* fix(server): Cursor recovers on its own after a network outage by @maria-rcks in pingdotgg/t3code#44922
* fix(mobile): settings and keyboard palette list projects in desktop order by @maria-rcks in pingdotgg/t3code#44947
* fix(web): clear stale pull request resolution error when editing input by @only21mil in pingdotgg/t3code#45095
* fix(web): sidebar toggle no longer re-renders every thread row by @maria-rcks in pingdotgg/t3code#45026
* fix(desktop): preview browser presents as Chrome so sites accept sign-in by @maria-rcks in pingdotgg/t3code#45049
* fix(web): model picker provider tooltips open at once when moving between icons by @iamshadmantaqi in pingdotgg/t3code#45097
* fix(web): Enter saves the drawing after using the annotation toolbar by @only21mil in pingdotgg/t3code#45098
* fix(cli): reject blank --track folder values in t3 project add by @only21mil in pingdotgg/t3code#45100
* fix(client-runtime): psql -Atc and mysql -Ne scripts are highlighted as SQL in the work log by @iamshadmantaqi in pingdotgg/t3code#45099
* fix(server): Antigravity turns end when a subagent goes idle without send_message by @juliusmarminge in pingdotgg/t3code#45102
* fix(web): large text row, column and line counts follow the app language by @iamshadmantaqi in pingdotgg/t3code#45103
* fix(web): thread details Servers rows share the tooltip hover delay by @iamshadmantaqi in pingdotgg/t3code#45113
* fix(web): archive and SQLite preview counts and dates follow the app language by @only21mil in pingdotgg/t3code#45116
* fix(web): drop duplicate imports from merged attachment preview tests by @juliusmarminge in pingdotgg/t3code#45146
* fix(mobile): removing a queued edit attachment also removes its chip from the text by @iamshadmantaqi in pingdotgg/t3code#45106
* fix(mobile): side chats can be deleted from the phone by @juliusmarminge in pingdotgg/t3code#45131
* fix(server): a linked peer that answers again no longer lists a stale error by @juliusmarminge in pingdotgg/t3code#45137
* fix(web,mobile): "Stopped by user" follows the app language by @AymanKhan9 in pingdotgg/t3code#45108
* fix(web): remote subagent tooltips resolve child provider and thread by @only21mil in pingdotgg/t3code#45104
* fix(web): stashed prompt previews no longer cut a combining mark off its letter by @iamshadmantaqi in pingdotgg/t3code#45140
* fix(web): keys pressed on a focused audio player stay with the player by @only21mil in pingdotgg/t3code#45145
* fix(server): t3 project add refuses a blank path instead of adding the current folder by @iamshadmantaqi in pingdotgg/t3code#45151
* fix(web): refreshing workspace files reloads open image, video and audio previews by @iamshadmantaqi in pingdotgg/t3code#45132
* fix(client-runtime): highlight fish -lc and other bundled flags in the work log by @iamshadmantaqi in pingdotgg/t3code#45159
* fix(client-runtime): shell heredocs run with -s and arguments are highlighted in the work log by @only21mil in pingdotgg/t3code#45157
* fix(server): t3 thread start title no longer cuts a combining mark off its letter by @iamshadmantaqi in pingdotgg/t3code#45165
* fix(server): a failing Codex MCP server is reported once per thread by @maria-rcks in pingdotgg/t3code#45152
* fix(web): queued Edit tooltip opens at once from adjacent actions by @only21mil in pingdotgg/t3code#45161
* fix(test): device evaluations keep POSIX paths on Windows by @rebelscumm in pingdotgg/t3code#45163
* fix(web): Cmd/Ctrl+A in archive and SQLite previews selects only the table by @only21mil in pingdotgg/t3code#45167
* fix(web): Cmd/Ctrl+A in Word document previews selects only the document by @only21mil in pingdotgg/t3code#45168
* fix(shared): files ending _tests count as tests in the diff panel by @iamshadmantaqi in pingdotgg/t3code#45169
* fix(server): t3 uninstall names a service whose home it cannot read by @iamshadmantaqi in pingdotgg/t3code#45170
* fix(shared): match SCP remotes with repeated slashes by @StiensWout in pingdotgg/t3code#45172
* fix(web): preserve ODS column addresses after wide hidden spans by @StiensWout in pingdotgg/t3code#45171

## New Contributors
* @watashiwaaniket made their first contribution in pingdotgg/t3code#33198
* @radomirml made their first contribution in pingdotgg/t3code#34051
* @birdringxD made their first contribution in pingdotgg/t3code#45048
* @NickoGNS made their first contribution in pingdotgg/t3code#45075
* @rebelscumm made their first contribution in pingdotgg/t3code#45163

**Full Changelog**: pingdotgg/t3code@v0.1.14-nightly.20261128.5399...v0.1.14-nightly.20261128.5413

Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.14-nightly.20261128.5413
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot close or delete a side chat in the Android app

1 participant