Repository navigation
Description
On a supported subpath installation, Copy link generates a URL outside the Tale application prefix. Colleagues receive the wrong path even though the sharing API succeeds. Suggested severity: P2.
Reproduce:
- Use a local synthetic deployment configuration with
BASE_PATH=/audit-prefix, and a browser location under/audit-prefix/dashboard/.... - Open Share chat for a native shared thread. The actual query adapter correctly requests
/audit-prefix/api/app/chat/threads/<id>/share-status; the fixture proxy strips the prefix before forwarding to the native local backend. - Click the actual copy control and inspect the clipboard text.
Expected: <origin>/audit-prefix/dashboard/<org>/chat/shared/<token>.
Observed: <origin>/dashboard/<org>/chat/shared/<token>; the configured prefix is missing. The root-deployment control (BASE_PATH='') copies the correct token URL and its native snapshot returns 200.
Root: share-chat-dialog.tsx constructs the URL directly from window.location.origin plus /dashboard. Use the existing base-aware URL convention rather than introducing another URL builder. The self-hosting docs explicitly support BASE_PATH with prefix stripping at the proxy.
Acceptance: verify exact clipboard URLs for root and non-root deployments, including normalized slash handling, and check opening the copied URL under a real prefixed proxy.
Executed proof: chat-sharing-wave01/share-state.probe.test.tsx, vitest.config.ts, and share-state-run4.log under /Users/yannick/.codex/notes/tale-1000-additional/. Five observation/control cases passed. The actual ShareChatDialog, feature hooks, query adapter, shared components and clipboard interaction run in jsdom against fresh native localhost thread/share fixtures. Each case owns a distinct thread to exclude the hook's module cache. The controlled fetch dispatcher admits only the local chat routes; no messages or provider calls are made. The component fixture stubs navigation, so its router/act warnings are not product findings.
Replay from the pinned audit worktree with its installed dependencies and retained local stack:
bun x --no-install vitest run --config /Users/yannick/.codex/notes/tale-1000-additional/chat-sharing-wave01/vitest.config.tsScope of proof: actual copied string and actual base-aware API request, with native successful backend state. The prefix-stripping transport is a fixture; a complete reverse-proxy deployment or recipient navigation was not exercised. This report does not claim a specific HTTP error at the incorrect URL.
Verified locally at 480ee6a3e6d33c3414a2c0f8a52fded1ddc4ca2d. The relevant implementation is unchanged in fetched main d351611bd. Production was used only for task-board coordination. Deduplication covered all 1,035 all-state issue bodies in the live batch-02 snapshot, the original 102-report baseline and the new finding ledger. One distinct cause is counted here.
Activity