Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(ios): resolve bundled asset URLs before fetch routing (#7875)

Peter Chinman8de380e086b1
diff --git a/apps/web/src/index.tsx b/apps/web/src/index.tsx
index c91c5853b8..b3d6f47358 100644
--- a/apps/web/src/index.tsx
+++ b/apps/web/src/index.tsx
@@ -24,7 +24,16 @@ if (isTauri()) {
window.fetch = new Proxy(originalFetch, {
apply: (target, thisArg, args) => {
const url = args[0];
- const urlString = url instanceof Request ? url.url : String(url);
+ // Resolve bundled asset paths before checking the existing localhost bypass.
+ let urlString: string;
+ try {
+ urlString = new URL(
+ url instanceof Request ? url.url : String(url),
+ document.baseURI
+ ).href;
+ } catch (error) {
+ return Promise.reject(error);
+ }
if (urlString.includes('localhost')) {
return target.apply(thisArg, args as Parameters<typeof fetch>);
}
diff --git a/docs/AGENT_GUIDE/navigation.md b/docs/AGENT_GUIDE/navigation.md
index bffee64d38..e510c03b6a 100644
--- a/docs/AGENT_GUIDE/navigation.md
+++ b/docs/AGENT_GUIDE/navigation.md
@@ -12,6 +12,12 @@ inside the workspace. The top-right split icon opens another Home split, even
when Home is already open, and is disabled when there is no room for a new split.
Its tooltip is “New Split” and displays the registered new-split shortcut (`\`).
+After native bundle updates, verify that Home and channel details load without
+an update toast on every launch. Relative bundled assets such as Loro's WASM
+must load through the webview, not native HTTP. A `vite:preloadError` with
+`scheme tauri not supported` indicates an asset-routing failure; reloading the
+same bundle does not resolve it.
+
## Returning from another page
A browser back/forward-cache restore reconnects the GraphQL cache worker and