-
Notifications
You must be signed in to change notification settings - Fork 5.4k
feat(mobile): open the thread screen as soon as a new task is submitted #10435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
juliusmarminge
merged 6 commits into
main
from
t3code/mobile-immediate-thread-navigation
Sep 7, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6453ac5
feat(mobile): open the thread screen as soon as a new task is submitted
juliusmarminge 091874f
fix(mobile): open the restored draft after a rejected task and stop f…
juliusmarminge fd3fc8f
fix(mobile): keep the queued prompt on screen while the worktree builds
juliusmarminge 30e4f1b
fix(mobile): keep the working pill up between the prompt landing and …
juliusmarminge e1db6b3
fix(mobile): count a requested turn so the working pill never blinks out
juliusmarminge 4368569
fix(mobile): preserve setup status and recover failed task drafts
juliusmarminge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
apps/mobile/src/features/threads/ThreadCreationFailedCard.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| import { Pressable, View } from "react-native"; | ||
|
|
||
| import { AppText as Text } from "../../components/AppText"; | ||
|
|
||
| /** | ||
| * Shown in place of the composer when the server rejected a new task. The | ||
| * prompt and attachments are already back in the project draft, so the only | ||
| * action is reopening it. | ||
| */ | ||
| export function ThreadCreationFailedCard(props: { | ||
| readonly reason: string; | ||
| readonly onEditTask: () => void; | ||
| }) { | ||
| return ( | ||
| <View className="gap-2.5 rounded-[20px] border border-adaptive-neutral-200-white-a6 bg-adaptive-neutral-100-900 p-4"> | ||
| <Text className="font-t3-bold text-2xs uppercase tracking-[1.1px] text-adaptive-rose-700-300"> | ||
| Could not start task | ||
| </Text> | ||
| <Text className="font-sans text-sm leading-normal text-adaptive-neutral-600-400"> | ||
| {props.reason} | ||
| </Text> | ||
| <Text className="font-sans text-xs leading-normal text-adaptive-neutral-600-400"> | ||
| Your prompt was kept in the project draft. | ||
| </Text> | ||
| <View className="flex-row"> | ||
| <Pressable | ||
| accessibilityRole="button" | ||
| className="items-center justify-center rounded-[14px] bg-blue-500 px-3.5 py-3" | ||
| onPress={props.onEditTask} | ||
| > | ||
| <Text className="text-sm font-t3-extrabold text-white">Edit task</Text> | ||
| </Pressable> | ||
| </View> | ||
| </View> | ||
| ); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.