Skip to content

Commit 1cbbb83

Browse files
authored
Merge branch 'main' into feat/runops-legacy-guard-ci
2 parents 3835389 + 73d966a commit 1cbbb83

8 files changed

Lines changed: 7 additions & 383 deletions

File tree

.claude/rules/server-apps.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ area: webapp
1414
type: fix
1515
---
1616
17-
Fix pages occasionally loading unstyled during deploys. The dashboard now recovers automatically.
17+
Brief description of what changed and why.
1818
EOF
1919
```
2020

2121
- **area**: `webapp` | `supervisor`
2222
- **type**: `feature` | `fix` | `improvement` | `breaking`
2323
- If the PR also touches `packages/`, just the changeset is sufficient (no `.server-changes/` needed).
24-
25-
The body ships **verbatim in user-facing release notes**. Keep it to 1–2 short sentences, non-technical, written for a dashboard user: describe what changed for them, never the implementation (no header names, endpoints, middleware, storage mechanisms, internal tools). See `.server-changes/README.md` for full guidance.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
area: webapp
3+
type: improvement
4+
---
5+
6+
Remove the deprecated realtime stream write endpoint used by retired v3 task clients.

.server-changes/stale-deploy-asset-recovery.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/webapp/app/components/StaleAssetRecovery.tsx

Lines changed: 0 additions & 272 deletions
This file was deleted.

apps/webapp/app/entry.server.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ export default function handleRequest(
5454
) {
5555
const url = new URL(request.url);
5656

57-
// Stale documents reference /build asset hashes that 404 after a deploy —
58-
// always revalidate HTML. Route-set headers win.
59-
if (!responseHeaders.has("Cache-Control")) {
60-
responseHeaders.set("Cache-Control", "no-cache");
61-
}
62-
6357
if (url.pathname.startsWith("/login")) {
6458
responseHeaders.set("X-Frame-Options", "SAMEORIGIN");
6559
responseHeaders.set("Content-Security-Policy", "frame-ancestors 'self'");

apps/webapp/app/root.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import type { ToastMessage } from "~/models/message.server";
77
import { commitSession, getSession } from "~/models/message.server";
88
import tailwindStylesheetUrl from "~/tailwind.css";
99
import { RouteErrorDisplay } from "./components/ErrorDisplay";
10-
import { StaleAssetRecovery } from "./components/StaleAssetRecovery";
1110
import { AppContainer, MainCenteredContainer } from "./components/layout/AppLayout";
1211
import { ShortcutsProvider } from "./components/primitives/ShortcutsProvider";
1312
import { Toast } from "./components/primitives/Toast";
@@ -19,11 +18,6 @@ import { getUser } from "./services/session.server";
1918
import { getTimezonePreference } from "./services/preferences/uiPreferences.server";
2019
import { appEnvTitleTag } from "./utils";
2120

22-
// Derived here (not inside StaleAssetRecovery) so the shared component takes
23-
// the flag as a prop. NODE_ENV is statically replaced in browser bundles, and
24-
// the ErrorBoundary can't rely on loader data.
25-
const isProduction = process.env.NODE_ENV === "production";
26-
2721
export const links: LinksFunction = () => {
2822
return [{ rel: "stylesheet", href: tailwindStylesheetUrl }];
2923
};
@@ -105,7 +99,6 @@ export function ErrorBoundary() {
10599
<head>
106100
<meta charSet="utf-8" />
107101

108-
<StaleAssetRecovery isProduction={isProduction} />
109102
<Meta />
110103
<Links />
111104
</head>
@@ -132,7 +125,6 @@ export default function App() {
132125
<>
133126
<html lang="en" className="h-full" data-theme="dark">
134127
<head>
135-
<StaleAssetRecovery isProduction={isProduction} />
136128
<Meta />
137129
<Links />
138130
</head>

0 commit comments

Comments
 (0)