[Bug]: PDF open in Browser panel becomes “Not Found”; reopening its original chat link restores it
维护者通常 1 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- desktop
调研方向
An open pull request (#36205) already targets this, so check its state before starting. Read apps/server/src/assets/AssetAccess.ts for the one-hour URL lifetime and apps/server/src/http.ts for the 404 on an expired signature, then compare the two client paths: apps/web/src/browser/openFileInPreview.ts, which requests a fresh URL on link click, and apps/desktop/src/preview/Manager.ts, which only reloads the existing one. The payload has no failed-request logs or reproduction, so first confirm an expired URL is actually what the panel is showing; done means an open preview either renews access or offers a reload that re-requests the asset.
由索引模型根据 Issue 内容生成。
描述
Area
Desktop — integrated Browser panel / PDF preview
What happened
While using the macOS desktop app to ask questions about lecture notes, I kept a PDF open in the Browser panel on the right.
The PDF had opened successfully from a file link in an earlier assistant response. Later, the preview disappeared and showed “Not Found”.
I scrolled back through the conversation, clicked Load earlier turns to reach the original response, then clicked the PDF link again. The PDF opened successfully.
Expected behaviour
An open PDF remains readable while the conversation continues. If its temporary URL expires, the app renews access automatically or offers a way to reopen the file directly from the panel.
Observed sequence
Reported by the user; not independently reproduced:
- Open a local PDF using a file link in an assistant response.
- Keep it open in the right-hand Browser panel while continuing the conversation.
- The preview eventually shows “Not Found”.
- Load earlier conversation history and click the original file link again.
- The same PDF opens successfully.
The elapsed time and exact trigger for the failure were not captured.
Investigation
Read-only inspection of main at fa2f4ff2a2 found:
- File asset URLs have a one-hour lifetime (
apps/server/src/assets/AssetAccess.ts). - The asset endpoint returns HTTP 404 “Not Found” when a signed URL has expired (
AssetAccess.ts,apps/server/src/http.ts). - Clicking a file link requests a fresh asset URL (
apps/web/src/browser/openFileInPreview.ts). - Desktop Browser refresh reloads the existing URL (
apps/desktop/src/preview/Manager.ts).
An expired asset URL is a plausible explanation, not a confirmed diagnosis of this incident. The installed desktop version and failed request have not been inspected. Loading earlier history may simply have made the original link accessible again.
Environment
- T3 Code (Beta), macOS desktop app
- Local environment, served at
127.0.0.1:3773 - PDF displayed in the integrated Browser panel
- Exact app version not captured
Impact and workaround
Interrupts reading a document alongside an ongoing conversation. Recovery required finding the original file link in older chat history and clicking it again.
Related issue
#27681 concerns file previews reloading and losing their position after agent commands. This report concerns an already-open PDF becoming “Not Found”; a shared cause has not been established.
Evidence
No failed-request logs were captured. No screenshots are attached.
Drafted with GPT-6.1-Sol through Codex in T3 Code.
- 主要语言
- TypeScript
- 星标
- 24.8k
- 派生
- 6.4k
- 平均合并
- 59 分钟
- 30 天内合并 PR
- 418
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingdotgg/t3code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
via-triage
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 半天 新手友好度 68/100
维护者通常 1 天内回复
-
Question card options show LaTeX as raw source, though the question text renders it可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
[Bug]: Settings inheritance popover shows raw slugs for branch naming, default permissions and response streaming可能已有人在做 @juliusmarminge 于 1 天前认领。 未关闭vouch:denounced
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
相似的 Issue
-
bug platform:mobile root-cause:found
难度 2/5 1-3 小时 新手友好度 72/100
openchamber/openchamber#6926 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
push-based/user-flow#356 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
Cygnux-Labs/Tracekit#827 ·
维护者通常 1 天内回复
-
www build: a refused import shows only "ENOENT scandir <outDir>", never the build-audience error未关闭kind:defect
难度 1/5 1 小时以内 新手友好度 91/100
维护者通常 1 天内回复
-
type:bug
难度 2/5 1-3 小时 新手友好度 72/100
nightgauge/nightgauge#3266 ·
维护者通常 1 天内回复