Repository navigation
Inbox: open the file a relative link means; tell the agent which links open nothing - #4114
Merged
Merged
Conversation
…ll the agent which links open nothing A message's base_path follows the agent's shell, so a relative link can start in a folder where the file is not, even when the thread already holds it. The referenced-file view now falls back to a same-named attachment of the message, then the newest one an earlier message of the thread attached, then the folders the same sender wrote from before. A refused path stays refused and a linked machine's earlier folders are held to the thread's folders. A file found nowhere answers looked_in. send_message and submit_guide return links_not_found, and warn about a sound or video inside a question (question_media_not_shown) and an attached page past what the window frames (pages_not_shown). Such a page now shows its download card instead of an empty frame. The pane's words for a file found nowhere are a proposal held for the owner (packages/inbox/fileMissingWords.ts).
…is found nowhere - The fallback takes only the linking sender's files: its own attachment, then one the same agent session on the same computer attached earlier in the thread, then that sender's earlier folders. Never another agent's file, the person's upload, or a session's on another computer. - An agent in a linked worktree never falls back to another checkout's folder, as the message's own places already rule. - The hover, Open in and the code preview take the same fallback as the pane, under the project path rule. - A file found nowhere names where it was looked for only when that path is in the project for a linked computer's window; with no such path, or one that is only the name, the short form. The routes' errors use the same words as the pane. A view that could not be read says the attachment pane's "could not be opened", never where the file is. - links_not_found asks the thread's PR first, as the pane does. - pages_not_shown is documented as a lower bound: it names only a page that can never show.
…'s export map as published
…lback exact - links_not_found reads a thread's PR only from what the Inbox already keeps in memory (InboxPulls.cachedFile); a link memory cannot answer for is not warned of, so a send never waits on a forge read. - A diff header's path (from the repository's top) never falls back to an earlier folder or an attachment of the same name. - A file a linked machine's window cannot reach is named with the short form, never a place it is said not to be. - The hover's code window shows the attachment the pane opens; Open in still launches only that attachment's path while it is on disk. - Hover and Open in fall back only after a miss: a refused file stays refused.
The places a message's path may be (candidates, PR paths, the credential rule) move from inbox-open-in.ts into a small inbox-message-places.ts that both the routes and links_not_found import. inbox-guides.ts, which a browser spec loads under Node through scripts/inbox-worst-case.ts, no longer reaches the routes' Bun-only imports. A test walks that spec's static imports and fails on any path to "bun".
…x-missing-file-links
backnotprop
marked this pull request as ready for review
November 27, 2026 20:11
backnotprop
added a commit
to bendrucker/plannotator
that referenced
this pull request
Nov 28, 2026
…panel swipes and the HTML viewer's lost highlights ui 0.67.0 and core 0.25.35 went to npm on 2026-11-28 with package files that match the v0.29.6 tag (c21f65e), so this pair carries what merged after v0.29.6, up to v0.29.7. core 0.25.36 is additive: the linked mark "decisions" and InboxDecision.machine (backnotprop#4066), DraftFileUploader.previewUrl (backnotprop#4165), and holdingsOf no longer counting a question Mark read closed (backnotprop#4160). No exports subpath changes; nothing removed. ui 0.68.0 is a minor: Escape while an input method composes only ends the composition, and shortcuts skip such keys; holdsImeEscape is new (backnotprop#3689, backnotprop#4162). HtmlViewer treats a collapsed live Range as lost (backnotprop#4152). Compact panels: OverlayScrollArea scrollMemory, SidebarContainer closing and scrollPositions, ActionMenu compactEdgeSwipe, four new hooks and the panel rules in theme.css (backnotprop#2861). useLaunchAnnouncement waits for ready (backnotprop#4067). ui uses nothing new from core; its exact pin follows so a host gets one core. Publish core first. README and HANDOFF name the new pair, and HANDOFF adds what the published 0.25.35 / 0.67.0 already held beyond their notes (backnotprop#4114, backnotprop#4151). bun.lock is bun install's own output: the two package version lines, and six app workspace version lines (0.29.5 to 0.29.7) the release bumps left behind.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What happened
An agent's message linked a file by a relative path (
[decisions](decisions.html)) with no attachment. The message'sbase_pathis the agent's working folder at send time (sendBasePathinpackages/server/inbox-mcp.ts, from the connection's working folder orproject_path), and that folder had moved. So the link pointed to a folder where the file was not. The file was on this computer, and an earlier message of the same thread had attached it under that name. The pane still said "decisions.html is not on this computer." Also, the send had not told the agent that the link opened nothing.The fix
packages/server/inbox-link-fallback.ts, used by the view route inpackages/server/inbox-open-in.ts). These are tried only when nothing is at the message's own places (its folder, its checkout, the thread's project folder), in this order:attachment_id, so it opens as that attachment;looked_in: the first place it was looked for, relative to the project when the path is inside it. The pane says<name> isn't at <looked_in>.These words are a PROPOSAL held for the owner, in one function:packages/inbox/fileMissingWords.ts. "does not show here." and "is too large to show here." are unchanged.send_messageandsubmit_guidenow return the following (each is a warning; the message is still sent):links_not_found[{ ref, path }]question_media_not_shown[{ ref, question }]: a sound or video in a picture choice, aShows:line, orBefore:/After:. The card draws it as text.pages_not_shown[{ name, size, limit }]: an attached HTML page larger than the 8 MBINBOX_PAGE_MAX_BYTES.page_too_large.No tool description, body guidance or
--helptext changed. The mobile contract is unchanged (scripts/mobile/check.tspasses).Tests
packages/server/inbox-link-fallback.test.ts: the message's own attachment; the newest earlier attachment; the project folder; the sender's earlier folder (never another sender's); missing withlooked_in; no widening (a secret, a linked machine); body link parsing;links_not_foundthroughsendAgentMessage.packages/server/inbox-send-warnings.test.ts: a clip in a choice, aShows:line, andBefore:/After:; an oversize page.packages/inbox/referencedFilePane.dom.test.tsx: the missing note names where it looked, and a refused file still says it does not show; anattachment_idanswer opens that attachment.packages/inbox/attachmentPageTooLarge.test.tsx(DOM): a refused page shows the download card, and a kept page stays framed.