Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: alphabetize app names in task selector

Adam Eivyfb6a98f3475e
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 44ea5ff3b9..adb1a4539d 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -19,3 +19,4 @@ A page-level run dock now slides up from the bottom of the Writers Room while im
- The "Rendering N scenes…" inline banner inside the Boards tab has been removed; the new run dock subsumes it and is visible from any tab.
- `STORYBOARD_TAB` enum now includes `OBJECTS` between `WORLD` and `SCENES`.
- `ANALYSIS_KINDS` server enum now includes `'objects'`.
+- App selectors throughout the UI (task add form, OpenClaw) now list apps alphabetically by name via the shared `AppContextPicker`, instead of preserving the underlying storage order.
diff --git a/client/src/components/AppContextPicker.jsx b/client/src/components/AppContextPicker.jsx
index 5f47569ca3..d833583aba 100644
--- a/client/src/components/AppContextPicker.jsx
+++ b/client/src/components/AppContextPicker.jsx
@@ -14,6 +14,9 @@ export default function AppContextPicker({
repoLabel = 'Repository'
}) {
const selectedApp = apps.find(app => app.id === value);
+ const sortedApps = [...apps].sort((a, b) =>
+ (a?.name || '').localeCompare(b?.name || '', undefined, { sensitivity: 'base' })
+ );
const content = (
<div className="space-y-2">
@@ -24,7 +27,7 @@ export default function AppContextPicker({
aria-label={ariaLabel || label || placeholder}
>
{includeDefaultOption && <option value="">{placeholder}</option>}
- {apps.map(app => (
+ {sortedApps.map(app => (
<option key={app.id} value={app.id}>{app.name}</option>
))}
</select>