Registry Mirror
Skip to content

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Holding the on-screen delete key in the iOS terminal deleted only what had been typed since the last space and then stopped, so the rest of a line had to be deleted one tap at a time. The hidden input field now always starts with an invisible character, so the keyboard keeps repeating the delete.

  • resetInputField fills the field with a zero-width space (U+200B) instead of leaving it empty. While delete is held, the keyboard keeps repeating only while there is text before the caret, and now there always is.
  • Deleting that character sends one DEL to the terminal through the existing text diff in handleInputEditingChanged, and the field then puts it back.
  • textFieldDidChangeSelection keeps the caret from moving in front of the zero-width space, for example with the space-bar trackpad. Otherwise the next keystroke would erase a real character and send U+200B to the shell.
  • TerminalInputField.deleteBackward does nothing when the caret is just after the zero-width space and typed text follows it. This is the same as the empty-prefix case before this change; deleting the zero-width space there would erase the character in front of that text.

Fixes #46869

Reproduction on main

Commit 19da14d (origin/main). Started an isolated backend (T3CODE_DEV_SEED=0 vp run dev:server -- --host 0.0.0.0, fresh database), ran Metro (apps/mobile vp run dev:client), leased an iPhone 18 Pro simulator (iOS 27.2) from the device pool, installed the dev client with vp run mobile:install ios and paired it with the backend. Opened the thread, tapped Terminal, chose 'Open new terminal', and the on-screen keyboard appeared. Typed echo alpha bravo charlie, then long-pressed the keyboard's delete key for 4000 ms. Only charlie was deleted and deletion stopped at the space, leaving echo alpha bravo . Long-pressed delete again for 4000 ms: exactly one character (the space) was deleted, leaving echo alpha bravo. So holding delete repeats only through the characters typed since the last space, and after that each hold deletes a single character.

Evidence

On both commits: iPhone 18 Pro simulator, iOS 27.2, native T3 Code Dev client, Metro, light theme, 402 × 874 logical viewport. Each backend used a fresh database with a synthetic Demo project and Replay thread. The matching native client was installed for each commit.

Open the thread's new terminal, set a neutral $ prompt and clear the screen, type echo alpha bravo charlie without submitting it, then hold the on-screen delete key for 4,000 ms twice, with a one-second pause between holds. The same uploaded driver performed both runs.

Before After
19da14db03 f7cb9ba26b
Before recording After recording
Before: two holds leave echo alpha bravo After: held delete clears the entire command
First hold stops at the space after bravo; second hold deletes only that space. First hold continues across spaces and clears the entire command; second hold leaves it empty.

Interaction driver. Both recordings were inspected using sampled frame sheets; final stills were checked against a second identical screenshot.

Not shown:

  • IME composition and spacebar-trackpad selection safeguards were not exercised; this comparison follows the reported held-delete reproduction.

Tests

  • PR CI on f7cb9ba: all checks pass, including Mobile Native Static Analysis (swiftlint lint --config .swiftlint.yml --strict) and Check; Macroscope Approvability and Correctness pass
  • vp run check:changed (on 7e6c29d, whose code differs only in where one brace sits): pass (format, and typecheck for 2 packages)
  • vp run mobile:install ios --prepare (on 7e6c29d): the iOS dev client built, so the Swift compiles
  • iPhone 18 Pro (iOS 27.2) from the device pool, with an isolated backend (T3CODE_DEV_SEED=0) and Metro: one 4s hold of delete removed all of echo alpha bravo charlie, then echo ok | od -c printed o k \n (no U+200B)
  • Before the change, on main's client, on the same device model: a 4s hold deleted only charlie, and a second hold only the space
  • No unit test: the behaviour is UIKit's keyboard repeat and caret handling, which unit tests cannot reach

Not in this change

  • Not checked on device: IME composition (Korean/Japanese) and hardware-keyboard backspace; both use the same diff path.
  • Not shown on device: a real space-bar trackpad drag, and Backspace with the caret moved before retained text; the simulator gesture tool cannot script the trackpad, so both rest on reading the code.

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 3 commits December 1, 2026 17:38
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rases a character

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. 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. size:M 30-99 changed lines (additions + deletions). labels Dec 1, 2026
macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Dec 1, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at f7cb9ba

Macroscope's review found this PR approvable — The change keeps held Delete working in the iOS terminal using an invisible input sentinel, with guards around cursor movement and composition. Its scope is limited to existing keyboard-input handling, with no material risk requiring human judgment.

You can add or adjust custom eligibility rules. Learn more.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for 7e6c29d.

This comment will update automatically after the next completed run.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The iOS terminal input field now uses an invisible sentinel at the start of its text. Selection handling and Backspace behavior account for the sentinel. Input resets and truncation preserve it.

Changes: Terminal input

Layer / File(s) Summary
Sentinel-based input and deletion
apps/mobile/modules/t3-terminal/ios/T3TerminalView.swift
The input field initializes and maintains a sentinel through resets and truncation. Selection changes move a selection that starts before the sentinel to its far side. Backspace returns without deleting when the caret is immediately after the sentinel and committed text remains after it.

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

Change: Bug fix · Severity of issue fixed: Low

Merge Risk: Minimal · up to f7cb9

This change makes holding backspace in the iOS terminal keep deleting. No concrete defect was found in review. IME composition, hardware-keyboard backspace and trackpad caret movement were not checked on device, so a quick manual check of those is worthwhile before release.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix and the affected area: holding delete in the iOS terminal keeps deleting. It matches the main change, which makes the hidden input field's sentinel let the keyboard repeat dele…
Linked Issues check Passed [#46869] The issue requires that holding the on-screen backspace key in the iOS terminal repeats deletion. The whole-PR diff (merge base 19da14d to head f7cb9ba) changes only apps/mobile/modules/…
Out of Scope Changes check Passed The whole-PR diff touches only apps/mobile/modules/t3-terminal/ios/T3TerminalView.swift, inside the apps/mobile area named by #46869. Each hunk supports the held-backspace objective:
- `deleteBack…
Description check Passed The description follows the template closely. It has a clear Problem (held delete in the iOS terminal stops at the last space), a Change section that explains the zero-width space sentinel, caret hand…
Full details: Title check

Explanation

The title names the fix and the affected area: holding delete in the iOS terminal keeps deleting. It matches the main change, which makes the hidden input field's sentinel let the keyboard repeat delete. The title follows the conventional commit format and is 62 characters long.

Full details: Linked Issues check

Explanation

[#46869] The issue requires that holding the on-screen backspace key in the iOS terminal repeats deletion. The whole-PR diff (merge base 19da14d to head f7cb9ba) changes only apps/mobile/modules/t3-terminal/ios/T3TerminalView.swift, and it implements the mechanism the issue needs:

  • inputSentinel (U+200B) is the field's initial and reset content (resetInputField sets inputField.text and sentInput to the sentinel). The keyboard keeps repeating a held delete while text precedes the caret, so the sentinel keeps repeat active.
  • Deleting the sentinel produces a text diff that handleInputEditingChanged turns into one DEL. The empty-text branch now calls resetInputField, so the sentinel returns.
  • textFieldDidChangeSelection moves a caret placed before the sentinel to after it, so a keystroke cannot delete the sentinel and send U+200B to the PTY.
  • TerminalInputField.deleteBackward returns early when the caret is just after the sentinel and typed text follows, so the character before that text is not erased.
  • The 64-character cap path prefixes the retained character with the sentinel.
    I did not run the app. The on-device result (4s hold removed echo alpha bravo charlie) is author-reported, and the Evidence section is still marked as being captured. The author reports no automated test. The issue does not require one. IME composition, hardware-keyboard backspace, a real trackpad drag, and backspace with the caret before retained text are not shown on device. These are unverified edge cases, not failures of the issue's stated requirement.
Full details: Out of Scope Changes check

Explanation

The whole-PR diff touches only apps/mobile/modules/t3-terminal/ios/T3TerminalView.swift, inside the apps/mobile area named by #46869. Each hunk supports the held-backspace objective:

  • deleteBackward guard: prevents sentinel deletion when retained text follows the caret.
  • inputSentinel declaration and comment: supplies the invisible character that keeps repeat active.
  • textFieldDidChangeSelection: keeps the caret after the sentinel.
  • resetInputField and the editing-change branch (text.isEmpty || ...): restore the sentinel after deletion.
  • The 64-character branch: keeps the sentinel when input is truncated.
    No unrelated changes were found in the diff.
Full details: Description check

Explanation

The description follows the template closely. It has a clear Problem (held delete in the iOS terminal stops at the last space), a Change section that explains the zero-width space sentinel, caret handling, and the deleteBackward guard, and a Scope note that links issue #46869 as the bug report. Verification is thorough: before/after reproduction on main, screenshots and recordings, CI results, and an on-device check. It also lists what was not checked, and it names the models that did the work. The Scope section does not explain why the change is a bug fix rather than a feature, but the issue link makes that clear. The template's title guidance is not applicable here because this check covers the description only. Minor gaps: the title was not provided in the description, and the 'Change' section is brief about why the zero-width space is needed for the same fix across the components it touches. 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 7e6c29d and f7cb9ba.

Files selected for processing: 1

  • apps/mobile/modules/t3-terminal/ios/T3TerminalView.swift
Files skipped from review as they are similar to previous changes: 1

  • apps/mobile/modules/t3-terminal/ios/T3TerminalView.swift

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

…lint

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@macroscopeapp
macroscopeapp Bot dismissed their stale review December 1, 2026 19:20

Dismissing prior approval to re-evaluate f7cb9ba

@juliusmarminge

Copy link
Copy Markdown
Member Author

This change passed review and its checks are green, so it is ready to merge.

It is held for now because it changes the native app: merging it would block over-the-air updates until a new store build ships. It is labelled staged-for-store and will be merged when the next store release is prepared. Nothing is needed from you until then.

@juliusmarminge
juliusmarminge merged commit 1888498 into main Dec 3, 2026
51 checks passed
@juliusmarminge
juliusmarminge deleted the factory/issue-46869 branch December 3, 2026 05:14
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Dec 3, 2026
**v0.1.14-nightly.20261203.5651** · 87 changes from 17 contributors

- **Antigravity MCP tools.** Use configured MCP servers in Antigravity threads and delegated tasks, including on the first turn.
- **ClinePass models.** Start threads and delegated tasks with models that appear after selecting their provider.
- **Desktop updates.** See available app updates and update servers to their latest releases.
- **Partial commits.** Hook edits staged during a partial commit no longer risk being reverted in a later commit.
- **Draft dictation.** Keep in-progress dictation when changing a draft's project.
- **Worktree cleanup.** Remove desktop worktrees even when their dependencies include Electron.

### Plus 72 more bug fixes.

<details>
<summary>Full changelog</summary>

## What's Changed
* fix(dev): keep watching after an existing nested source directory is swapped by @saphid in pingdotgg/t3code#47863
* fix(shared): quoted thread search no longer matches the start of a longer accented word by @StiensWout in pingdotgg/t3code#47849
* fix(web): archive preview keeps keyboard focus when navigating by @only21mil in pingdotgg/t3code#47854
* chore(vouch): denounce ndycode by @juliusmarminge in pingdotgg/t3code#47928
* fix(shared): ignore backticks in link titles when labeling file chips by @saphid in pingdotgg/t3code#47871
* fix(mobile): translate the 'unavailable' suffix on missing context chips in the composer by @saphid in pingdotgg/t3code#47866
* fix(mobile): keep CR-delimited code fences from closing chat folds early by @saphid in pingdotgg/t3code#47865
* fix(web): keep escaped-bracket footnotes across PR attachments by @saphid in pingdotgg/t3code#47870
* fix(web): long Pull Requests URL and saved filters no longer end in half a flag or joined emoji by @tiliakoos in pingdotgg/t3code#47907
* fix(acp): Antigravity threads keep the user's HTTP MCP servers by @juliusmarminge in pingdotgg/t3code#47463
* fix(shared): link bare prose absolute file paths that end with #L line anchors by @saphid in pingdotgg/t3code#47900
* feat(mobile): iOS terminal runs on official libghostty-vt, like web and Android by @juliusmarminge in pingdotgg/t3code#47914
* fix(web): show no date for a ZIP member whose date was never set by @iamshadmantaqi in pingdotgg/t3code#47908
* fix(web): preserve dictation when moving a draft by @peakoshi in pingdotgg/t3code#47883
* fix(server): Antigravity threads load your global MCP servers from ~/.gemini by @t3dotgg in pingdotgg/t3code#47994
* fix(mobile): dragging in the focused composer selects text instead of going back by @juliusmarminge in pingdotgg/t3code#44048
* fix(preview): stalled remote browser links no longer get stuck in fast frame pipelining by @saphid in pingdotgg/t3code#47912
* fix(mobile): zoomed Android PDF tiles no longer flicker when the cache is full by @juliusmarminge in pingdotgg/t3code#45408
* fix(mobile): create worktrees from the exact base branch by @saphid in pingdotgg/t3code#47918
* fix(mobile): holding delete in the iOS terminal keeps deleting by @juliusmarminge in pingdotgg/t3code#46951
* fix(server): WorkflowForgeError keeps the underlying error as cause by @Kamo2323 in pingdotgg/t3code#47910
* fix(web): keep PR footnote numbering after a BOM-prefixed code fence by @saphid in pingdotgg/t3code#47919
* fix(server): read the full shared-string index in XLSX attachments by @KiritoXDone in pingdotgg/t3code#47937
* fix(mobile): render inline SVG data URLs with uppercase scheme or MIME type by @saphid in pingdotgg/t3code#47832
* fix(web): Workflows waits for the first connection and stops hanging on a pane link with no run by @juliusmarminge in pingdotgg/t3code#47997
* fix(mobile): iOS math that fails to parse wraps instead of cutting off by @juliusmarminge in pingdotgg/t3code#44813
* fix(server): worktree removal in the desktop app deletes folders holding Electron's .asar files by @juliusmarminge in pingdotgg/t3code#48001
* fix(mobile): dragging the conversation dismisses the keyboard on iOS by @juliusmarminge in pingdotgg/t3code#47170
* fix(mobile): ignore quoted HTML attributes when linking PR references by @saphid in pingdotgg/t3code#47931
* fix(forgejo): treat pull requests from deleted forks as cross-repository by @saphid in pingdotgg/t3code#47947
* fix: a waiting workflow question keeps focus and its typed reason when the run's steps load by @juliusmarminge in pingdotgg/t3code#47995
* fix(desktop): app updates stay visible and are found within the hour by @t3dotgg in pingdotgg/t3code#47132
* fix(server): honor directory-only ignore rules for names ending in a backslash by @saphid in pingdotgg/t3code#47952
* fix(server): honor full-segment globstars with extra stars in workspace ignore rules by @saphid in pingdotgg/t3code#47962
* fix(chat): only open chat folds for an actual open attribute by @saphid in pingdotgg/t3code#47923
* fix(web): copy literal invalid follow-ups without rewriting nested citations by @saphid in pingdotgg/t3code#47967
* fix(client-runtime): highlight Node eval scripts after warning and unhandled-rejection options by @Pruthvirajcodes in pingdotgg/t3code#47966
* fix(web): reset reopened empty drafts to the project model by @shivamhwp in pingdotgg/t3code#47951
* fix(usage): skip out-of-range transcript timestamps instead of failing the daily summary by @saphid in pingdotgg/t3code#47972
* test(web): clear IndexedDB between browser test files by @juliusmarminge in pingdotgg/t3code#48020
* test(web): fake driver waits for session ready like the real one by @juliusmarminge in pingdotgg/t3code#48029
* fix(web): Update everything moves servers to the newest release, not the last one the app found by @t3dotgg in pingdotgg/t3code#47141
* fix(server): Antigravity delegates get your MCP tools on the first turn by @t3dotgg in pingdotgg/t3code#48019
* fix(server): let workflows open signal waits with an infinite timeout by @saphid in pingdotgg/t3code#47973
* fix(usage): preserve trailing spaces in transcript source identity by @saphid in pingdotgg/t3code#47971
* fix(mobile): show the generic file icon for filenames ending in .constructor by @saphid in pingdotgg/t3code#47976
* fix(web): busy fork button stops pulsing when reduced motion is enabled by @flamboh in pingdotgg/t3code#47983
* chore(server): start T3 Connect tunnels in cloudflared's post-quantum mode by @maria-rcks in pingdotgg/t3code#48046
* fix(mobile): let escaped backticks stay literal when finding chat fold boundaries by @saphid in pingdotgg/t3code#47977
* fix(web): keep explicit table sections outside implicit row groups by @saphid in pingdotgg/t3code#47984
* fix(usage): stop model aliases from corrupting bucket source paths by @saphid in pingdotgg/t3code#47992
* fix(web): copied headings keep a trailing # sign by @saphid in pingdotgg/t3code#47998
* fix(server): do not treat malformed ignore character classes as literal paths by @saphid in pingdotgg/t3code#47974
* fix(web): keep indented code blocks on the next line of a list item in CR-only Markdown by @saphid in pingdotgg/t3code#47993
* fix(web): PR and issue sections keep open state across right-panel tab switches by @only21mil in pingdotgg/t3code#47985
* fix(mobile): strip carriage returns from HTML link and image URLs by @saphid in pingdotgg/t3code#47991
* fix(contracts): preserve literal Git repository and worktree paths by @saphid in pingdotgg/t3code#48000
* fix(web): PDF page and zoom buttons keep keyboard focus at limits by @only21mil in pingdotgg/t3code#48004
* fix(web): keep the Usage chart tooltip on the hovered bucket when the period changes by @saphid in pingdotgg/t3code#48012
* fix(shared): keep angle brackets literal in sent file mention labels by @saphid in pingdotgg/t3code#47986
* fix(mobile): keep healthy pull request pages when another repository fails by @saphid in pingdotgg/t3code#47989
* fix(web): IME typing no longer triggers app shortcuts by @tiliakoos in pingdotgg/t3code#48010
* fix(shared): count emitted JavaScript and declaration maps as generated changes by @saphid in pingdotgg/t3code#48022
* fix(web): PR pickers and menus hold the panel still while open by @flamboh in pingdotgg/t3code#47800
* fix(shared): keep short diff-like PR heading links in the summary by @saphid in pingdotgg/t3code#48017
* fix(web): Escape cancels a sidebar drag without leaving Pull Requests by @StiensWout in pingdotgg/t3code#48036
* fix(contracts): preserve literal edge whitespace in filesystem metadata and browse cwd paths by @saphid in pingdotgg/t3code#47982
* fix(web): Shift+Tab from a newly saved citation returns to its comment button by @only21mil in pingdotgg/t3code#48035
* fix(server): omit hidden labels from standalone EPUB maps by @KiritoXDone in pingdotgg/t3code#48025
* fix(shared): keep attached context when a code fence is still open by @saphid in pingdotgg/t3code#48011
* fix(client-runtime): select Me in the PR author menu for typed author:@me by @saphid in pingdotgg/t3code#47945
* fix(shared): quoted search no longer matches the start of a longer Hindi word by @StiensWout in pingdotgg/t3code#48033
* fix(web): Restore device defaults also resets font smoothing by @Pruthvirajcodes in pingdotgg/t3code#47970
* fix(shared): quoted search finds an acronym before a decomposed accented word by @StiensWout in pingdotgg/t3code#48031
* fix(desktop): preserve browser state while preview initializes by @shivamhwp in pingdotgg/t3code#48014
* fix(web): scrolling an expanded diff no longer rewrites unchanged lines by @juliusmarminge in pingdotgg/t3code#48057
* fix(ui): align picker icons with their titles by @Yash-Singh1 in pingdotgg/t3code#48079
* fix(server): sync hook edits after partial commits by @UtkarshUsername in pingdotgg/t3code#47412
* fix(acp): check the model after applying the option that selects its catalog by @juliusmarminge in pingdotgg/t3code#48076
* fix(web): settling skips a next thread deleted while it was saving by @StiensWout in pingdotgg/t3code#48041
* fix(client-runtime): do not start shell comments inside parameter expansions in command labels by @saphid in pingdotgg/t3code#48048
* fix(web): hide the empty Turn submenu in the Diff scope menu before any turn completes by @only21mil in pingdotgg/t3code#48056
* fix(shared): quoted word search skips longer words after a decomposed accent by @StiensWout in pingdotgg/t3code#48034
* fix(shared): quoted thread search finds titles with a separate accent inside a word by @StiensWout in pingdotgg/t3code#48032
* fix(web): closing Settings on a directly opened thread no longer adds a Back stop by @StiensWout in pingdotgg/t3code#48040
* fix(server): Claude turns that keep retrying are no longer failed after 10 minutes by @KevinKreps in pingdotgg/t3code#48013

## New Contributors
* @Kamo2323 made their first contribution in pingdotgg/t3code#47910
* @Pruthvirajcodes made their first contribution in pingdotgg/t3code#47966

**Full Changelog**: pingdotgg/t3code@v0.1.14-nightly.20261203.5637...v0.1.14-nightly.20261203.5651

</details>


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

Labels

📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. 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]: Holding backspace in the iOS terminal does not repeat deletion

1 participant