- {search || selectedTag
- ? "请调整搜索条件或过滤器"
- : "请确认 API Token 具备 Access: Apps and Policies Read 权限"}
-
-
- )}
+
+ {search || selectedTag
+ ? "请调整搜索条件或过滤器"
+ : emptyStateHint}
+
+
+ )}
{/* Host cards */}
diff --git a/src/lib/cloudflare.ts b/src/lib/cloudflare.ts
index 10df226..8c0a248 100644
--- a/src/lib/cloudflare.ts
+++ b/src/lib/cloudflare.ts
@@ -172,6 +172,7 @@ export async function listAccessApps(): Promise
{
/** Tag added to every Access app created by this console */
export const SSH_CONSOLE_TAG = "managed:ssh-console";
+const LEGACY_SSH_APP_NAME_PREFIX = "SSH · ";
/**
* Identifies apps managed by this SSH console.
@@ -185,6 +186,8 @@ function isSshConsoleApp(app: AccessApp): boolean {
// Legacy apps created before the tag was introduced: has a metrics: tag
// (only this console sets that pattern)
if (tags.some((t) => t.startsWith("metrics:"))) return true;
+ // Older apps created by this console used a stable name prefix.
+ if ((app.name ?? "").startsWith(LEGACY_SSH_APP_NAME_PREFIX)) return true;
return false;
}