diff --git a/frontend/src/shell/SessionDocumentsPanel.test.tsx b/frontend/src/shell/SessionDocumentsPanel.test.tsx
index ec5e0f65..97b9a130 100644
--- a/frontend/src/shell/SessionDocumentsPanel.test.tsx
+++ b/frontend/src/shell/SessionDocumentsPanel.test.tsx
@@ -38,6 +38,15 @@ test("renders the document titles from the API", async () => {
expect(screen.getByRole("heading", { name: "Final SQL" })).toBeInTheDocument();
});
+test("lets the Final SQL document use the full resized panel width", async () => {
+ wrap();
+
+ const sqlSection = (await screen.findByRole("heading", { name: "Final SQL" })).closest("section");
+ expect(sqlSection).toHaveClass("w-full");
+ expect(sqlSection?.parentElement).toHaveClass("w-full");
+ expect(sqlSection?.parentElement).not.toHaveClass("max-w-[76ch]");
+});
+
test("shows Resume for resumable, hides it for finalized", async () => {
const { rerender } = wrap();
expect(await screen.findByRole("button", { name: /resume/i })).toBeInTheDocument();
diff --git a/frontend/src/shell/SessionDocumentsPanel.tsx b/frontend/src/shell/SessionDocumentsPanel.tsx
index 6c2ad69d..cf0f673b 100644
--- a/frontend/src/shell/SessionDocumentsPanel.tsx
+++ b/frontend/src/shell/SessionDocumentsPanel.tsx
@@ -183,9 +183,15 @@ export function SessionDocumentsPanel({ session, onClose, onResume, desktopSplit
{isLoading ? (
Loading…
) : (
-
+
{docs.map((doc, idx) => (
-
0 ? "border-t border-border/50 pt-7" : ""}>
+ 0 ? "border-t border-border/50 pt-7" : "",
+ ].join(" ")}
+ >
{doc.title}