GeezerVison is showing github.com — merge: sync upstream main · vedprakash2302/Cody@426c2cd
File treeExpand file treeCollapse file tree Open diff view settings thread_rollback_after_stop
provider-acp-registry/src/server provider-cursor/src/server source-control-core/src/server
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: apps/desktop/scripts/electron-launcher.mjs +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -20,7 +20,8 @@ const APP_BUNDLE_ID = isDevelopment | 20 | 20 | ? `com.vedpandey.cody.dev.${devBundleIdSuffix || "local"}` | 21 | 21 | : "com.vedpandey.cody"; | 22 | 22 | const APP_PROTOCOL_SCHEMES = isDevelopment ? ["cody-dev"] : ["cody"]; | 23 | | -const LAUNCHER_VERSION = 20; | | 23 | +// Cody and upstream both used 20; bump so cached dev bundles pick up the autofill opt-out. | | 24 | +const LAUNCHER_VERSION = 21; | 24 | 25 | const developmentMacIconPngPath = NodePath.join(repoRoot, "assets", "cody", "icon-1024.png"); | 25 | 26 | const productionMacIconPngPath = developmentMacIconPngPath; | 26 | 27 | // oxlint-disable-next-line t3code/no-global-process-runtime -- Standalone launcher script has no Effect runtime. | @@ -275,6 +276,8 @@ function patchMainBundleInfoPlist(appBundlePath, iconPath, executableName) { | 275 | 276 | for (const [key, value] of Object.entries(resolveMacBundleInfoPlistStrings(executableName))) { | 276 | 277 | setPlistString(infoPlistPath, key, value); | 277 | 278 | } | | 279 | + // macOS 26 offers Messages/Mail codes in every text field unless opted out. | | 280 | + setPlistJson(infoPlistPath, "NSAutoFillRequiresTextContentTypeForOneTimeCodeOnMac", true); | 278 | 281 | setPlistJson(infoPlistPath, "CFBundleURLTypes", [ | 279 | 282 | { | 280 | 283 | CFBundleURLName: APP_BUNDLE_ID, | |
Collapse file Copy file name to clipboardExpand all lines: apps/desktop/src/app/DesktopApp.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -43,7 +43,7 @@ const MAX_TCP_PORT = 65_535; | 43 | 43 | const DESKTOP_BACKEND_PORT_PROBE_HOSTS = ["127.0.0.1", "0.0.0.0", "::"] as const; | 44 | 44 |
| 45 | 45 | const makeDesktopRunId = Crypto.Crypto.pipe( | 46 | | - Effect.flatMap((crypto) => crypto.randomUUIDv4), | | 46 | + Effect.flatMap((crypto) => crypto.randomUUIDv4()), | 47 | 47 | Effect.map((value) => value.replaceAll("-", "").slice(0, 12)), | 48 | 48 | ); | 49 | 49 |
| |
Collapse file Copy file name to clipboardExpand all lines: apps/desktop/src/app/DesktopConnectionCatalogStore.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -411,7 +411,7 @@ export const make = Effect.gen(function* () { | 411 | 411 | ), | 412 | 412 | ), | 413 | 413 | ); | 414 | | - const suffix = (yield* crypto.randomUUIDv4.pipe( | | 414 | + const suffix = (yield* crypto.randomUUIDv4().pipe( | 415 | 415 | Effect.mapError( | 416 | 416 | (cause) => | 417 | 417 | new DesktopConnectionCatalogStoreWriteError({ | |
Collapse file Copy file name to clipboardExpand all lines: apps/desktop/src/preview/Manager.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2501,7 +2501,7 @@ const makeNativeOperations = Effect.fn("PreviewManager.makeOperations")(function | 2501 | 2501 | wc, | 2502 | 2502 | ), | 2503 | 2503 | ]); | 2504 | | - const uuid = yield* crypto.randomUUIDv4.pipe(Effect.orDie); | | 2504 | + const uuid = yield* crypto.randomUUIDv4().pipe(Effect.orDie); | 2505 | 2505 | const id = `browser-screenshot-${artifactSiteSlug(wc.getURL())}-${millis.toString(36)}-${uuid.slice(0, 8)}`; | 2506 | 2506 | const artifactPath = path.join(resolvedArtifactDirectory, `${id}.png`); | 2507 | 2507 | const data = image.toPNG(); | |
Collapse file Copy file name to clipboardExpand all lines: apps/desktop/src/settings/DesktopAppSettings.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -521,7 +521,7 @@ export const make = Effect.gen(function* () { | 521 | 521 | return Effect.succeed([settingsChange(settings, false), settings] as const); | 522 | 522 | } | 523 | 523 |
| 524 | | - return crypto.randomUUIDv4.pipe( | | 524 | + return crypto.randomUUIDv4().pipe( | 525 | 525 | Effect.map((uuid) => uuid.replace(/-/g, "")), | 526 | 526 | Effect.mapError( | 527 | 527 | (cause) => | |
Collapse file Copy file name to clipboardExpand all lines: apps/desktop/src/settings/DesktopClientSettings.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -195,7 +195,7 @@ export const make = Effect.gen(function* () { | 195 | 195 | Effect.withSpan("desktop.clientSettings.get"), | 196 | 196 | ), | 197 | 197 | set: (settings) => | 198 | | - crypto.randomUUIDv4.pipe( | | 198 | + crypto.randomUUIDv4().pipe( | 199 | 199 | Effect.map((uuid) => uuid.replace(/-/g, "")), | 200 | 200 | Effect.mapError( | 201 | 201 | (cause) => | |
Collapse file Copy file name to clipboardExpand all lines: apps/desktop/src/snapShot/DesktopSnapShot.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -858,7 +858,7 @@ export const make = Effect.gen(function* () { | 858 | 858 | const prepareCapture = Effect.fn("desktop.snapShot.prepareCapture")(function* ( | 859 | 859 | settings: ClientSettings, | 860 | 860 | ) { | 861 | | - const id = yield* crypto.randomUUIDv4.pipe(Effect.mapError((cause) => captureFailure(cause))); | | 861 | + const id = yield* crypto.randomUUIDv4().pipe(Effect.mapError((cause) => captureFailure(cause))); | 862 | 862 | const mode = captureMode(environment.platform); | 863 | 863 | if (mode === "unavailable") { | 864 | 864 | return yield* new DesktopSnapShotError({ operation: "unsupported", captureId: id }); | |
Collapse file Copy file name to clipboardExpand all lines: apps/desktop/src/ssh/DesktopSshPasswordPrompts.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -307,7 +307,7 @@ export const make = Effect.fn("desktop.sshPasswordPrompts.make")(function* ( | 307 | 307 | }); | 308 | 308 | } | 309 | 309 |
| 310 | | - const requestId = yield* crypto.randomUUIDv4.pipe( | | 310 | + const requestId = yield* crypto.randomUUIDv4().pipe( | 311 | 311 | Effect.mapError( | 312 | 312 | (cause) => | 313 | 313 | new DesktopSshPromptRequestIdGenerationError({ | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/features/cloud/dpop.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -261,7 +261,7 @@ export function createDpopProof(input: { | 261 | 261 | }); | 262 | 262 | const nowMs = yield* Clock.currentTimeMillis; | 263 | 263 | const jti = yield* Crypto.Crypto.pipe( | 264 | | - Effect.flatMap((crypto) => crypto.randomUUIDv4), | | 264 | + Effect.flatMap((crypto) => crypto.randomUUIDv4()), | 265 | 265 | Effect.mapError(cloudDpopError("Could not generate DPoP proof identifier.")), | 266 | 266 | ); | 267 | 267 | const htu = yield* normalizeHtu(input.url); | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/PendingUserInputCard.tsx +17-3Lines changed: 17 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -21,6 +21,9 @@ import { SymbolView } from "../../components/AppSymbol"; | 21 | 21 | import { AppText as Text } from "../../components/AppText"; | 22 | 22 | import { ControlPill } from "../../components/ControlPill"; | 23 | 23 | import { cn } from "../../lib/cn"; | | 24 | +import { SelectableMarkdownText } from "../../native/SelectableMarkdownText"; | | 25 | +import { useOpenPullRequest } from "../../native/useOpenPullRequest"; | | 26 | +import { useMarkdownPreviewStyles } from "../files/FileMarkdownPreview"; | 24 | 27 | import { | 25 | 28 | isPendingUserInputOptionSelected, | 26 | 29 | type PendingUserInput, | @@ -91,6 +94,19 @@ const EXPANDED_CARD_IS_OVERLAY = Platform.OS === "ios"; | 91 | 94 |
| 92 | 95 | const CARD_LAYOUT_TRANSITION = LinearTransition.duration(200); | 93 | 96 |
| | 97 | +/** Renders question text as markdown so agent-provided links open on tap. */ | | 98 | +function QuestionText(props: { readonly markdown: string }) { | | 99 | + const styles = useMarkdownPreviewStyles(); | | 100 | + const openLink = useOpenPullRequest(); | | 101 | + return ( | | 102 | + <SelectableMarkdownText | | 103 | + markdown={props.markdown} | | 104 | + textStyle={styles.nativeTextStyle} | | 105 | + onLinkPress={(href) => void openLink(href)} | | 106 | + /> | | 107 | + ); | | 108 | +} | | 109 | + | 94 | 110 | export function PendingUserInputCard(props: PendingUserInputCardProps) { | 95 | 111 | const questionCount = props.pendingUserInput.questions.length; | 96 | 112 | // Message responses start a new run and remain available after the provider exits. | @@ -277,9 +293,7 @@ export function PendingUserInputCard(props: PendingUserInputCardProps) { | 277 | 293 | <Text className="font-t3-bold text-xs uppercase tracking-[1px] text-foreground-muted"> | 278 | 294 | {question.header} | 279 | 295 | </Text> | 280 | | - <Text className="font-sans text-base leading-snug text-foreground"> | 281 | | - {question.question} | 282 | | - </Text> | | 296 | + <QuestionText markdown={question.question} /> | 283 | 297 | <View className="gap-2"> | 284 | 298 | {question.options.map((option) => { | 285 | 299 | const optionValue = option.value ?? option.label.trim(); | |
|