Skip to content

fix(mobile): automation message rows use the fork copy button - #283

Merged
Yarden-zamir merged 1 commit into
mainfrom
fork-fix/2026-10-22-0811-automation-copy-button
Oct 22, 2026
Merged

Yarden-zamir merged 1 commit into
mainfrom
fork-fix/2026-10-22-0811-automation-copy-button

Conversation

@Yarden-zamir

Copy link
Copy Markdown
Owner

Fork CI run https://github.com/Yarden-zamir/t3code/actions/runs/39744392828 failed the typecheck on fork main at 28d38f2:

src/features/threads/ThreadFeed.tsx:1089:12 - error TS2552: Cannot find name 'UserMessageCopyButton'. Did you mean 'ForkMessageCopyButton'?

Cause

Upstream pingdotgg/t3code pingdotgg#22638, merged through fork sync #277, added ThreadAutomationMessageRow to the mobile ThreadFeed.tsx with a UserMessageCopyButton. Fork pull request #274 "feat(web,mobile): copy message link action" replaced UserMessageCopyButton with ForkMessageCopyButton. Its branch did not have the automation row, so both pull requests passed alone and their merge on main does not compile.

Fix

The automation row now uses ForkMessageCopyButton with the same props as the user message row: a prompt link, and "Copy message link" when the fork message links setting is on. When the setting is off, the button copies the text and offers the prompt link, as upstream's UserMessageCopyButton did. The row gets threadId and messageId from its call site.

Checks

  • vp run fork:check: typecheck (@t3tools/mobile), lint, knip, doc links and the web tests pass.
    • The format step failed only on the untracked private file fork-repair-agent-prompt.md, which is not in this pull request.
    • The mobile test step failed only on a 60 second timeout in reactCompilerCoverage.test.ts ("Metro's transformer applies the compiler"), which took 20 minutes on the loaded VPS. Fork CI runs it on a clean runner.

Upstream pingdotgg/t3code pingdotgg#22638 added automation message rows that use UserMessageCopyButton. Fork pull request #274 replaced that component with ForkMessageCopyButton without that row, so fork main failed the typecheck. The automation row now gets the same copy button, prompt link and message link as other user messages.
@Yarden-zamir
Yarden-zamir merged commit 8860a25 into main Oct 22, 2026
19 checks passed
@Yarden-zamir
Yarden-zamir deleted the fork-fix/2026-10-22-0811-automation-copy-button branch October 22, 2026 08:51
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