Skip to content

Commit 3c7d596

Browse files
fix(mobile): hide Work on PR until detail; fingerprint stopOnSettle
Cold list opens still showed an enabled Work action while canAsk was true without detail, and script stopOnSettle edits did not remount the retained git menu. Co-authored-by: Cursor <[email protected]>
1 parent 151cbdc commit 3c7d596

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎apps/mobile/src/features/pull-requests/PullRequestControls.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function PullRequestActionToolbar(props: {
140140
if (!props.pr && !props.params.initialSummary) return null;
141141
const primaryDisabled = pendingReview ? false : agent.disabled;
142142
// Keep the bar for initialSummary, but do not offer Work on PR until detail exists.
143-
const showPrimary = pendingReview || canOpenThread;
143+
const showPrimary = pendingReview || (props.pr !== null && canOpenThread);
144144
if (Platform.OS === "android") {
145145
const primary = (
146146
<Button

‎apps/mobile/src/features/threads/ThreadGitControls.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ export function threadGitControlsContentKey(props: ThreadGitControlsMenuKeyInput
156156
status?.sourceControlProvider?.kind ?? "",
157157
// Script edits keep the same id; include fields so the retained menu runs the new command.
158158
props.projectScripts
159-
.map((script) => `${script.id}\t${script.name}\t${script.command}\t${script.icon}`)
159+
.map(
160+
(script) =>
161+
`${script.id}\t${script.name}\t${script.command}\t${script.icon}\t${script.stopOnSettle ? "1" : "0"}`,
162+
)
160163
.join("\0"),
161164
props.terminalSessions
162165
.map(

0 commit comments

Comments
 (0)