Skip to content

fix(web): a copied issue or pull request error no longer ends in a broken character - #41901

Merged
juliusmarminge merged 3 commits into
pingdotgg:mainfrom
tiliakoos:fix/web-error-toast-broken-character
Nov 24, 2026
Merged

juliusmarminge merged 3 commits into
pingdotgg:mainfrom
tiliakoos:fix/web-error-toast-broken-character

Conversation

@tiliakoos

Copy link
Copy Markdown
Contributor

Problem

When an issue or pull request action fails, its toast carries the error cut at 320 UTF-16 units with detail.slice(0, 319) plus …. When an emoji sits on the cut, half of it stays behind. The toast shows only four lines of a long error, so the broken end is not on screen; it shows in what the toast's Copy error button copies, which then pastes as �…. To reproduce: fail an issue label change with an error whose 319th and 320th units are one emoji, click Copy error on the toast, and paste.

Change

When the cut would split a surrogate pair, readableFailure steps back one unit, using the shared splitsSurrogatePair from @t3tools/shared/assistantCitations, as the merged #41838 does for the pull request search. The 320-unit limit and the … suffix are unchanged. #35111 added the same guard to the link excerpt in this file.

Scope

A small fix for an obvious bug, so no issue.

Verification

  • One new assertion in pullRequestDetail.logic.test.ts, beside the existing 900-x case: 318 x followed by 😀 and more text. On base it receives 318 x plus a lone \ud83d and …; with the fix it passes.
  • New web scenario scripts/scenarios/copied-issue-error-keeps-whole-characters.e2e.ts. It opens an issue (the issues.detail, issues.candidates and issues.update replies are stubbed at the WebSocket), fails a label change with a long error that has 😀 on the cut, clicks Copy error on the "Could not change labels" toast, pastes into the issue search box with the keyboard, and checks the pasted text.
  • One paired run, vp run scenarios:prove scripts/scenarios/copied-issue-error-keeps-whole-characters.e2e.ts --base upstream/main, exited 0. Base 8a9e8d12a8 fails on the assertion: the pasted value ends this label.�…. Head 0618785386 passes. Both captures are from that run.
  • vp run check:changed upstream/main: format, lint, knip, typecheck (2 packages), the test file and the React Compiler check pass.
Result Pasted error (cropped to the search box and the toast)
Base 8a9e8d12a8 ❌ failed: expect.toHaveValue, observed value ends The tracker refused this label.�…
Head 0618785386 ✅ passed

The scenario ran locally on macOS Chromium. Not checked: the pull request action toasts and the other issue toasts, which go through the same readableFailure; and what a clipboard on another platform does with the lone surrogate. The cut works per code point, so it can still split a grapheme cluster such as a flag or a ZWJ sequence, but it never leaves a lone surrogate.

Claude Fable 5.2 via T3 Code

…oken character

The error in an action's failure toast is cut at 320 units, which could
leave half of an emoji. The cut now stops one unit earlier then.
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

readableFailure now avoids splitting a surrogate pair when it truncates failure details longer than 320 characters. A test covers an emoji at the truncation boundary.

Changes: Failure detail truncation

Layer / File(s) Summary
Surrogate-safe truncation
apps/web/src/components/pullRequest/pullRequestDetail.logic.ts, apps/web/src/components/pullRequest/pullRequestDetail.logic.test.ts
readableFailure adjusts the cutoff when it would split a high/low surrogate pair. The test checks that the 318-character prefix and ellipsis are returned before the emoji.

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

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to c0b15

Copied failure toasts no longer end with a broken replacement character when an emoji falls at the truncation boundary. The change is small, reversible, and covered by a unit test.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix and its scope: a copied issue or pull request error no longer ends in a broken character. The raw summary shows readableFailure in pullRequestDetail.logic.ts now avoids splitti…
Description check Passed The description follows the template sections. Problem explains the broken emoji at the truncation cut and the reproduction steps. Change explains the one-unit step-back using splitsSurrogatePair. Sco…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the fix and its scope: a copied issue or pull request error no longer ends in a broken character. The raw summary shows readableFailure in pullRequestDetail.logic.ts now avoids splitting a surrogate pair at the 320-unit limit, so the title matches the main change. It follows the conventional commit form the template asks for. Its length (83 characters) is slightly long but acceptable.

Full details: Description check

Explanation

The description follows the template sections. Problem explains the broken emoji at the truncation cut and the reproduction steps. Change explains the one-unit step-back using splitsSurrogatePair. Scope says it is a small fix of an obvious bug and gives a reason for having no issue. Verification lists the unit assertion, a browser scenario, the paired run results, and the checks that were not run, with before/after evidence. The template's trailing agent-model line is present as 'Claude Fable 5.2 via T3 Code'. One gap: the Change section says the helper is splitsSurrogatePair, but the PR objectives say a later commit replaced it with an inline high-surrogate check. The description therefore may not match the final code, and the author should confirm and correct it.

Resolution

Confirm whether the final code uses the shared splitsSurrogatePair helper or the inline high-surrogate check. Update the Change section to match. Also note that the browser scenario named in Verification may have been removed in a later commit.

Finishing Touches

Generate unit tests (beta)

  • 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 0618785 and c0b1555.

Files selected for processing: 1

  • apps/web/src/components/pullRequest/pullRequestDetail.logic.ts

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

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 24, 2026
juliusmarminge and others added 2 commits November 24, 2026 04:16
readableFailure now uses the same inline high-surrogate check as the other
truncations in pullRequestDetail.logic.ts instead of importing a helper from
assistantCitations. The unit assertion already fails without the fix, so the
WebSocket-mocking scenario is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added size:S 10-29 changed lines (additions + deletions). and removed size:L 100-499 changed lines (additions + deletions). labels Nov 24, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

Chromium, 1280×800, light theme, fresh isolated state on both commits. Synthetic tracker replies match the triage reproduction.

Opened issue #42 → Change labels → bug → Escape → Copy error → Search issues → Ctrl+V → End. The error places 😀 immediately after 318 ordinary characters.

Before After
e9c952495c c0b155535e
Pasted error ends re�… (320 UTF-16 units). Pasted error ends re… (319 UTF-16 units).
Before: copied error contains a replacement character After: copied error ends cleanly with an ellipsis
Before recording After recording

Scenario source. scenarios:prove exited 0: failed on base, passed on head.

Not shown:

  • The separate pull-request toast path was not exercised; this proof covers the reported issue label-change toast and real clipboard paste.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 24, 2026
@juliusmarminge
juliusmarminge merged commit ac3af66 into pingdotgg:main Nov 24, 2026
55 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 24, 2026
@tiliakoos
tiliakoos deleted the fix/web-error-toast-broken-character branch November 24, 2026 04:45
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Nov 24, 2026
**v0.1.12-nightly.20261124.5178** · 117 changes from 30 contributors

- **Stacked pull request auto-merge.** Enable auto-merge for a stack of GitHub pull requests.
- **Scheduled task reasoning.** Choose reasoning effort when configuring a scheduled task.
- **HTML preview width.** Give inline HTML previews more room without widening the chat column.
- **Remote files.** Open or reveal remote files on your local machine over SSH.
- **Side chat search.** Search a side chat with Cmd+F or Ctrl+F.
- **Empty multi-select answers.** Submit a multi-select answer without choosing any options.
- **Queued message models.** Change the model and its options when editing a queued message.

### Plus 101 more bug fixes and performance improvements.

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

## What's Changed
* fix(web): terminal copy shortcuts no longer type escape codes when nothing is selected by @only21mil in pingdotgg/t3code#41702
* fix(server): Antigravity models keep their own thinking levels after a restart by @juliusmarminge in pingdotgg/t3code#41699
* fix(settlement): agent/CLI sends reopen settled threads by @johnatfreecoffee in pingdotgg/t3code#33995
* fix(client-runtime): a leading env-setup eval no longer hides the command label by @juliusmarminge in pingdotgg/t3code#41731
* fix(server): workflow step results no longer end in half an emoji by @tiliakoos in pingdotgg/t3code#41723
* fix(desktop): form submissions opened in a new tab keep their data by @tiliakoos in pingdotgg/t3code#41708
* test(server): merged-PR settlement test sets the renamed resume timestamp by @juliusmarminge in pingdotgg/t3code#41743
* fix(server): a desktop backend whose launcher died exits even if shutdown hangs by @juliusmarminge in pingdotgg/t3code#41687
* fix: XML assets open sandboxed and MCP apps bind to their document by @juliusmarminge in pingdotgg/t3code#41745
* fix(server): checkpoints work when a Git path ends in a space by @only21mil in pingdotgg/t3code#41725
* fix(server): automatic port selection checks the address the server binds by @daTuzzo in pingdotgg/t3code#41730
* fix(server): cut-off checkpoint captures no longer strand Git LFS temp files by @juliusmarminge in pingdotgg/t3code#41697
* fix(mobile): show every image when Markdown puts one per line by @dibas-np in pingdotgg/t3code#30280
* fix(server): mode limits follow the turn a message joins by @juliusmarminge in pingdotgg/t3code#41746
* fix(server): link codes and guest links require the access they hand out by @juliusmarminge in pingdotgg/t3code#41742
* fix(server): API request bodies have a 1 MiB default limit and tag scans stay linear by @juliusmarminge in pingdotgg/t3code#41747
* fix: local helper services start with credentials and report their own readiness by @juliusmarminge in pingdotgg/t3code#41752
* fix(ssh): Windows password sign-in uses a helper each ssh client starts directly by @juliusmarminge in pingdotgg/t3code#41753
* fix: remote logins and webhook tokens stay with their own host and reader by @juliusmarminge in pingdotgg/t3code#41756
* fix(cli): theme set publishes the file named on the command line by @only21mil in pingdotgg/t3code#41737
* fix(server): run setup scripts when restoring a removed worktree by @voltcrash in pingdotgg/t3code#30773
* fix(server): providers find a shell PATH that arrives after startup by @SARAsBooks in pingdotgg/t3code#31169
* fix(desktop): preview pages run in their own JavaScript world and popups open web links only by @juliusmarminge in pingdotgg/t3code#41757
* fix: a merge or review stays on the commit you opened the pull request on by @juliusmarminge in pingdotgg/t3code#41761
* fix(client): a link to a newly linked machine's thread opens without a reload by @juliusmarminge in pingdotgg/t3code#41722
* fix: approvals and hosted pairing show what is being approved by @juliusmarminge in pingdotgg/t3code#41769
* ci: release and preview credentials are scoped to the steps and jobs that use them by @juliusmarminge in pingdotgg/t3code#41765
* fix(web): Esc in Find in PDF clears it without closing the sheet by @only21mil in pingdotgg/t3code#41749
* fix: Windows system tools run by absolute path, and mobile links and shares are handled more strictly by @juliusmarminge in pingdotgg/t3code#41767
* fix: Forgejo and GitCafe merges carry the expected head commit by @juliusmarminge in pingdotgg/t3code#41773
* fix(server): .ignore patterns ending in an escaped backslash drop their trailing space by @Maseeek in pingdotgg/t3code#41760
* fix(web): allow setting reasoning effort for scheduled tasks by @voltcrash in pingdotgg/t3code#30253
* fix(server): PR writer credits the thread's model and harness, not itself by @juliusmarminge in pingdotgg/t3code#26946
* ci: the build record retries its ref fetch and the fork preview label is always consumed by @juliusmarminge in pingdotgg/t3code#41778
* fix(server): scheduled-task commands fall back to windir for the Windows directory by @juliusmarminge in pingdotgg/t3code#41782
* fix(web): Esc in theme search clears it without closing the dialog by @only21mil in pingdotgg/t3code#41764
* fix(acp): a refused model no longer abandons the native session by @srkrnmgda in pingdotgg/t3code#41652
* fix(web): restoring a saved model mapping clears its typed prices by @only21mil in pingdotgg/t3code#41775
* fix(github): replies and resolves refuse review threads from other pull requests by @juliusmarminge in pingdotgg/t3code#41762
* fix(server): diff expansion works in a repository whose folder name ends in a space by @tiliakoos in pingdotgg/t3code#41777
* fix(antigravity): respect filters on skill directory entries by @Lucenx9 in pingdotgg/t3code#41774
* fix(mobile): .cjs file links show the JavaScript icon by @Maseeek in pingdotgg/t3code#41763
* fix(web): align composer banner details with status text by @Yash-Singh1 in pingdotgg/t3code#41803
* fix(web): an IME Escape no longer clears the keybindings search by @only21mil in pingdotgg/t3code#41784
* fix(pi): mcp__t3_code__ aliases no longer double T3's tool schemas in Pi's context estimate by @juliusmarminge in pingdotgg/t3code#41779
* fix(opencode): model list picks up config edits made while OpenCode's server was stopped by @juliusmarminge in pingdotgg/t3code#41813
* fix(web): Lineage panel shows elapsed time for subagents on linked machines by @juliusmarminge in pingdotgg/t3code#41798
* fix(mobile): draft task titles no longer end in a broken character by @tiliakoos in pingdotgg/t3code#41787
* perf(server): the cached base branch survives other branches' commits and no longer leaks stale stamps by @juliusmarminge in pingdotgg/t3code#41740
* fix(server): early requests get a 503 again instead of hanging until startup ends by @juliusmarminge in pingdotgg/t3code#41627
* fix(scripts): benchmark compares Windows runs against Windows noise floors by @juliusmarminge in pingdotgg/t3code#41738
* fix(provider-core): agent sessions no longer inherit the AppImage runtime env by @Chillsbro in pingdotgg/t3code#30688
* fix(web): Esc while resizing a spreadsheet column or row cancels without closing the sheet by @only21mil in pingdotgg/t3code#41790
* fix(server): workflow failure reasons no longer end in a broken character by @tiliakoos in pingdotgg/t3code#41808
* fix(server): a closed preview tab no longer stays the agent's current tab by @juliusmarminge in pingdotgg/t3code#41818
* fix(chat): preserve model choices when editing queued messages by @Yash-Singh1 in pingdotgg/t3code#41814
* fix(web): dropped text is parsed like pasted text in the composer by @HoneyPaptan in pingdotgg/t3code#31098
* fix(web): holding Esc in the Files search clears it without closing the sheet by @only21mil in pingdotgg/t3code#41815
* feat(github): issues follow GitHub's issue statuses by @juliusmarminge in pingdotgg/t3code#41795
* feat: auto-merge a stack through GitHub's includeStack by @juliusmarminge in pingdotgg/t3code#41809
* fix(scripts): server benchmark keeps the rounds it finished when a later run fails by @juliusmarminge in pingdotgg/t3code#41716
* fix(server): saving a workflow no longer blocks workflow calls until running agent steps finish by @juliusmarminge in pingdotgg/t3code#41751
* fix(web): a long pull request search no longer ends in a broken character by @tiliakoos in pingdotgg/t3code#41838
* fix(web): Push on the default branch no longer commits files changed while confirming by @juliusmarminge in pingdotgg/t3code#41844
* fix(cli): t3 policy check expands ~ in the policy file path by @only21mil in pingdotgg/t3code#41848
* fix(ssh): a second desktop no longer stops a remote server it did not launch by @juliusmarminge in pingdotgg/t3code#41842
* fix(claude): measure context from the last main-model pass by @armancharan in pingdotgg/t3code#41816
* fix(server): closing an Android emulator with shutdown no longer leaves its session stuck open by @Jacksondr5 in pingdotgg/t3code#41840
* fix(web): tell update-all users where to update desktop servers it can't reach by @AfshinJalili in pingdotgg/t3code#33030
* fix(relay): APNs request spans and errors no longer record the request URL by @juliusmarminge in pingdotgg/t3code#41859
* fix(web): file menu opens remote files over SSH instead of on the server by @juliusmarminge in pingdotgg/t3code#29771
* fix(server): a foreground Claude subagent shows the model it ran on, not its parent's by @RaphaelMitas in pingdotgg/t3code#39729
* fix(server): a commit's diff is read only for commits the change request lists by @juliusmarminge in pingdotgg/t3code#41863
* fix(shared): repository keys for one-segment URL remotes name only the repository by @juliusmarminge in pingdotgg/t3code#41862
* fix(web): Cmd/Ctrl+F opens the browser find bar while a pull request is maximized by @tiliakoos in pingdotgg/t3code#41852
* fix(server): snapshot and transcript reads report a deleted thread as missing by @juliusmarminge in pingdotgg/t3code#41866
* fix(server): ACP Registry listing and preparation follow agent readiness and provider policy by @juliusmarminge in pingdotgg/t3code#41867
* fix(server): guests get failed file edits without their text by @juliusmarminge in pingdotgg/t3code#41865
* fix(web): opening a thread lands at its end instead of jumping there by @SunkenInTime in pingdotgg/t3code#41843
* feat(web): add an HTML preview width setting separate from chat width by @maria-rcks in pingdotgg/t3code#41663
* fix(web): an IME Escape no longer blurs the file editor by @only21mil in pingdotgg/t3code#41837
* fix(server): a thread resume replays a deleted thread from its deletion by @juliusmarminge in pingdotgg/t3code#41874
* fix(web): Esc in project icon search clears it without closing the dialog by @only21mil in pingdotgg/t3code#41856
* fix(client-runtime): Remove is no longer offered on a route the environment cannot lose by @juliusmarminge in pingdotgg/t3code#41845
* fix(server): saving a voice key reference needs provider management by @juliusmarminge in pingdotgg/t3code#41876
* fix(web): Open in file manager waits for a file preview to load, then shows the file in its folder by @juliusmarminge in pingdotgg/t3code#41877
* fix(mobile): the default-branch confirmation describes the live checkout by @juliusmarminge in pingdotgg/t3code#41880
* fix(server): revoking all other sessions also ends sign-ins still in progress by @juliusmarminge in pingdotgg/t3code#41884
* fix(server): answering a secret request with a reference needs provider management by @juliusmarminge in pingdotgg/t3code#41886
* perf(scripts): the soak drives forge polling and thread churn, and names what grew by @juliusmarminge in pingdotgg/t3code#41831
* fix(mobile): long branch names in the Git menu no longer show a broken character by @tiliakoos in pingdotgg/t3code#41861
* fix(web): IME keys no longer trigger or close the prompt stash menu by @only21mil in pingdotgg/t3code#41875
* fix(acp-registry): models show their own reasoning levels before their first session by @OmarAlex24 in pingdotgg/t3code#41850
* fix(server): keep short RGB terminal colors on reattach by @only21mil in pingdotgg/t3code#41882
* docs: clarify that MIT covers source code only and protect T3 Code branding by @t3dotgg in pingdotgg/t3code#41898
* fix(clients): threads can be dragged above threads from a disconnected machine by @Yash-Singh1 in pingdotgg/t3code#41885
* fix(web): a copied issue or pull request error no longer ends in a broken character by @tiliakoos in pingdotgg/t3code#41901
* fix(server): ending a Claude CLI on Windows also ends the shells it started by @hj-smith in pingdotgg/t3code#41857
* fix(server): parent stop skips already-idle delegated child threads by @zs-andy in pingdotgg/t3code#41860
* fix(web): an IME Escape no longer dismisses the citation highlight by @only21mil in pingdotgg/t3code#41899
* fix(server): title regeneration failures no longer end in a broken character by @tiliakoos in pingdotgg/t3code#41903
* fix(server): settle on merge no longer cancels a wake queued behind a finished turn by @juliusmarminge in pingdotgg/t3code#29934
* fix: multi-select questions can be answered with nothing checked by @juliusmarminge in pingdotgg/t3code#32017
* fix(web): Cmd+F searches a side chat, and Escape closes it by @juliusmarminge in pingdotgg/t3code#28919
* fix(mobile): keep the new-thread composer above the keyboard when no model is available by @juliusmarminge in pingdotgg/t3code#32137
* fix(web): Settings opened with Cmd+, no longer leaves the model picker open over it by @juliusmarminge in pingdotgg/t3code#29282
* feat(scripts): add a bench script so .bench.ts files actually run by @ndycode in pingdotgg/t3code#39662
* fix(server): resume threads after an excluded dependency is recloned by @armancharan in pingdotgg/t3code#41907
* fix(ci): enforce read-only top-level workflow token permissions by @acacuce in pingdotgg/t3code#41038
* fix(mobile): swipe-row labels no longer overlap during a partial swipe by @shivamhwp in pingdotgg/t3code#41916
* test(server): run the empty-PATH launcher cases only on POSIX hosts by @Motaghi in pingdotgg/t3code#41791
* test(ssh): the fake managed runtime runs the test's node by @IzonIcy in pingdotgg/t3code#40599
* fix(antigravity): update_steps checklist fills the task list instead of raw tool rows by @juliusmarminge in pingdotgg/t3code#41923
* fix(web): the PR checks count says how many are running instead of done/total by @SunkenInTime in pingdotgg/t3code#41714
* fix(server): webhook filters treat a null wildcard list as empty by @pauldupuyjr in pingdotgg/t3code#41715
* feat: starting providers show their real startup step and logo by @Yash-Singh1 in pingdotgg/t3code#41928
* fix(server): workflow run titles no longer end in a broken character by @tiliakoos in pingdotgg/t3code#41924

## New Contributors
* @johnatfreecoffee made their first contribution in pingdotgg/t3code#33995
* @daTuzzo made their first contribution in pingdotgg/t3code#41730
* @dibas-np made their first contribution in pingdotgg/t3code#30280
* @SARAsBooks made their first contribution in pingdotgg/t3code#31169
* @srkrnmgda made their first contribution in pingdotgg/t3code#41652
* @Chillsbro made their first contribution in pingdotgg/t3code#30688
* @HoneyPaptan made their first contribution in pingdotgg/t3code#31098
* @AfshinJalili made their first contribution in pingdotgg/t3code#33030
* @RaphaelMitas made their first contribution in pingdotgg/t3code#39729
* @hj-smith made their first contribution in pingdotgg/t3code#41857
* @zs-andy made their first contribution in pingdotgg/t3code#41860
* @acacuce made their first contribution in pingdotgg/t3code#41038

**Full Changelog**: pingdotgg/t3code@v0.1.12-nightly.20261123.5165...v0.1.12-nightly.20261124.5178

</details>


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

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants