[Bug]: Mobile file links outside the workspace silently do nothing #7798
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/mobile
Steps to reproduce#
- Create or reference an image outside the current project workspace, such as a generated image in a temporary/output directory.
- Include it in an assistant message as a Markdown file link, for example
[preview.png](file:///C:/temp/preview.png). - Observe that mobile renders the destination as a tappable file link with an image icon.
- Tap the link.
Expected behavior#
The image opens in a preview or download surface. If files outside the workspace are intentionally unsupported, the link should not appear actionable or tapping it should explain why it cannot be opened.
Actual behavior#
Tapping the rendered file link does nothing. There is no navigation, haptic feedback, fallback, or error message.
The silent path appears to be in apps/mobile/src/features/threads/ThreadFeed.tsx:
const relativePath = resolveWorkspaceRelativeFilePath(
props.workspaceRoot,
presentation.path,
);
if (relativePath) {
// navigate to ThreadFile
}
return;
resolveWorkspaceRelativeFilePath correctly returns null for an absolute path outside the workspace, but the caller then returns silently. Meanwhile, resolveMarkdownLinkPresentation has already classified the destination as a file and rendered it as actionable UI.
This is especially confusing for generated images or other downloadable artifacts that are saved outside the current project but linked in an assistant response.
Impact#
Confusing broken interaction; users cannot preview or download linked generated files from mobile and receive no indication why.
Version or commit#
main @ 8557150ac568c8c1631e9c8d9b34632965808279
Environment#
T3 Code mobile on Android. The same code path may affect iOS.
Logs or stack traces#
No error is shown or logged in the UI; the handler exits before navigation.
Workaround#
Save the image inside the current workspace and link it using a workspace-relative path.
juliusmarminge closed this
Sign in to join this conversation.
Fixed in #9023. Mobile now opens image and video links outside the workspace through the environment host's media preview route, including the generated-image case reported here.