Repository navigation
Closed
Labels
vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Open a project containing an HTML report inside a dot-prefixed folder, such as .reports/report.html.
- Open a thread in that project.
- Open the file picker with Control+P or Command+P.
- Search for report.html.
- Select the report to open its rendered preview.
Expected behavior
The preview displays the HTML report.
Actual behavior
The preview displays Not Found even though the report exists and can be read as source.
Impact
Minor bug or occasional failure. Users opening HTML reports stored in dot-prefixed project folders encounter this on every rendered preview.
Version or commit
main at d085ee5d15. The cause is at apps/server/src/assets/AssetAccess.ts:339.
Environment
Linux x64 boat.dev default machine, a fresh checkout.
Logs or stack traces
Quarterly reportAutomated repro
Fails in 2 of 2 runs on main: apply the patch with git apply, then run the command.
diff --git a/scripts/scenarios/html-report-in-dot-folder.e2e.ts b/scripts/scenarios/html-report-in-dot-folder.e2e.ts
new file mode 100644
--- /dev/null
+++ b/scripts/scenarios/html-report-in-dot-folder.e2e.ts
@@ -0,0 +1,27 @@
+import { expect } from "e2e";
+
+import { test, WEB } from "./t3.ts";
+
+test(
+ "An explicitly opened HTML report in a dot-prefixed folder renders its contents",
+ WEB,
+ async ({ t3, app, screen, browser }) => {
+ const project = await t3.project("demo", {
+ ".reports/report.html": "<!doctype html><html><body><h1>Quarterly report</h1></body></html>",
+ });
+ const thread = await t3.thread({ project, title: "Review report", messages: ["Start"] });
+ await t3.open(thread);
+ await expect(screen.getByText("fixture turn complete", { exact: false })).toBeVisible();
+
+ await browser.keyboard.press("Control+p");
+ await screen.getByPlaceholder("Search files…").fill("report.html");
+ await screen.getByRole("option", "report.html", { exact: false }).tap();
+
+ const document = browser.frameLocator('iframe[title=".reports/report.html"]');
+ try {
+ await expect(document.locator("body")).toContainText("Quarterly report");
+ } finally {
+ await app.screenshot("report-preview");
+ }
+ },
+);pnpm scenarios:prove scripts/scenarios/html-report-in-dot-folder.e2e.ts --base mainWorkaround
No response
Metadata
Metadata
Assignees
Labels
vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.


Activity
fix(server): HTML reports in dot-prefixed folders no longer open as N…