GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(mobile): prompt links resolve when the link is parsed, not f… · pingdotgg/t3code@52925f9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/mobile/src
    • App.tsx
    • features
      • prompt-links
        • newTaskPromptLink.ts
        • prompt-link-model.test.ts
        • prompt-link-model.ts
        • threadPromptLink.test.ts
        • threadPromptLink.ts
        • usePromptLinkResolver.ts
        • useThreadPromptLink.ts
      • threads
        • NewTaskRouteScreen.tsx
        • ThreadRouteScreen.tsx
    • lib
      • appLinking.test.ts
      • appLinking.ts
    • state
      • workspace.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/mobile/src/App.tsx‎

Copy file name to clipboardExpand all lines: apps/mobile/src/App.tsx
+17-3Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ import { OverlayPortalHost } from "./components/ui/OverlayPortal";
5151
import { shouldHandleAppLink, restoreDraftLinkState } from "./lib/appLinking";
5252
import { hasCloudPublicConfig } from "./features/cloud/publicConfig";
5353
import { takeScheduledTaskNewLink } from "./features/settings/scheduled-task-editor-state";
54+
import {
55+
resolvePendingNewTaskPromptLink,
56+
takeNewTaskPromptLink,
57+
} from "./features/prompt-links/newTaskPromptLink";
58+
import {
59+
resolvePendingThreadPromptLink,
60+
takeThreadPromptLink,
61+
} from "./features/prompt-links/threadPromptLink";
5462
import {
5563
disposeOnFoundationReplace,
5664
type FoundationHotModule,
@@ -93,9 +101,13 @@ const linkingConfig = {
93101

94102
function getAppStateFromPath(path: string, options: Parameters<typeof getStateFromPath>[1]) {
95103
return takeScheduledTaskNewLink(
96-
restoreSettingsLinkState(
97-
restoreDraftLinkState(getStateFromPath(path, options), path),
98-
settingsLinkPage(),
104+
takeNewTaskPromptLink(
105+
takeThreadPromptLink(
106+
restoreSettingsLinkState(
107+
restoreDraftLinkState(getStateFromPath(path, options), path),
108+
settingsLinkPage(),
109+
),
110+
),
99111
),
100112
);
101113
}
@@ -130,6 +142,8 @@ const Navigation = createStaticNavigation(RootStack);
130142
function handleNavigationStateChange(state: NavigationState | undefined): void {
131143
recordWorkspaceSelections(state);
132144
presentPendingIncomingShare();
145+
resolvePendingNewTaskPromptLink(state);
146+
resolvePendingThreadPromptLink(state);
133147
if (!state) return;
134148
setAgentNotificationPathname(workspaceLocationFromState(state).pathname);
135149
recordAppShortcutNavigationState(state);

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.