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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: stack series-list row controls under the text on mobile
[._.]/ Adam Eivy65e616fe1b6d
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex b7ff61c346..c20dac8dcc 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -9,6 +9,9 @@- **A failed "Refresh Models" now tells you what actually went wrong.** Every refresh failure — any provider, not just Cursor — used to surface as "Provider not found or not an API type", which is simply false when the provider exists and its type is fine; the real reason (the binary isn't on the server's PATH, the endpoint timed out, that CLI has no catalog to fetch) only ever reached the server log. The toast now carries the actual message. A model list that comes back legitimately empty still saves as empty — an empty answer and a failed one stay distinguishable, which is the whole reason a failed probe refuses to fall back to the shipped list.- **A provider whose *name* mentions another vendor is no longer refreshed against the wrong catalog.** Refresh picked its fetcher by checking the display name for vendor words before checking which binary the provider actually runs. So naming a Cursor provider "Cursor Claude Opus", or an Antigravity provider "Antigravity Claude Sonnet 4.6" — the natural name for a second provider pinned to that model, and Antigravity's own catalog does list Claude models — silently replaced its model list with Anthropic's, ids those tools reject. In the Antigravity case it also dropped the "use agy's own configured default" entry while the provider was still set to it, which blanked the model dropdown and read as though nothing was selected. The binary a provider runs now decides, and only falls back to the name when no binary matches.+## Series Pipeline+- **The series list is readable on a phone again.** Each row put the series' logline and the row's controls — the sync badge, share, sync-to-peer, and delete — side by side in one line. Those controls won't compress below their own width, so on a narrow screen they took the row and left the logline a column about one word wide, turning a two-line premise into a thirty-line ribbon that pushed the next series off the screen entirely. The controls now drop to their own line beneath the text on small screens, so the logline gets the card's full width; on a tablet or desktop the row is unchanged.+## Added- **Cursor's agent CLI ships as a provider, in both CLI and TUI flavors.** `cursor-agent` is a harness-capable coding agent, but PortOS had no entry for it — using it meant hand-rolling a custom provider and guessing at its flags. It now ships as `cursor-cli` (headless one-shot) and `cursor-tui` (interactive PTY), mirroring the Codex/Antigravity/Grok/Kimi pairs. Both ship disabled, so nothing changes until you enable them, and once enabled they're selectable anywhere a process provider is — CoS agents, runners, pipeline stages, TUI sessions. The headless path runs `cursor-agent --print` with the prompt on stdin; the TUI path runs the interactive agent. Both inject `--force`, which is doing more work than the name suggests: besides auto-approving tool calls, it clears Cursor's workspace-trust gate, and without it `cursor-agent` prints "Workspace Trust Required" and exits — which in a fresh CoS worktree is every single run. The model list is a 27-entry slice of the account catalog (Composer, Claude, GPT, Gemini families), each id verified against the live binary; the default is Cursor's own `auto` router, so unlike Grok/Kimi/Antigravity no configured-default sentinel was needed. Cursor bakes reasoning effort into the model id (`…-thinking-high`, `…-xhigh`, `…-max`) rather than exposing a flag, so no Effort control is offered for it. Existing installs pick the pair up on restart via migration `231-cursor-providers`. If your account offers a model outside the shipped 27 (the full catalog runs to 177 ids, most of them `-fast` twins), "Refresh Models" pulls the whole list from the binary — see above.diff --git a/client/src/pages/Pipeline.jsx b/client/src/pages/Pipeline.jsxindex 42b94cb815..66b223a7ad 100644--- a/client/src/pages/Pipeline.jsx+++ b/client/src/pages/Pipeline.jsx@@ -517,7 +517,7 @@ export default function Pipeline() {{series.map((s) => {const shapeDef = s.arc?.shape ? getStoryShape(s.arc.shape) : null;return (- <li key={s.id} className="flex items-start justify-between gap-3 p-3 bg-port-card border border-port-border rounded-lg hover:border-port-accent/40 transition-colors">+ <li key={s.id} className="flex flex-col sm:flex-row sm:items-start gap-3 p-3 bg-port-card border border-port-border rounded-lg hover:border-port-accent/40 transition-colors"><Link to={`/pipeline/series/${s.id}`} className="flex-1 min-w-0 flex items-start gap-3"><ImageThumb imageRef={s.coverImage} FallbackIcon={BookOpen} sizeClass="w-12 h-[4.5rem]" /><div className="min-w-0 flex-1">@@ -546,30 +546,33 @@ export default function Pipeline() {) : null}</div></Link>- <SyncBadge- status={syncBadgeStatus(sync, s.id)}- onClick={() => navigate(`/pipeline/series/${encodeURIComponent(s.id)}/sync`)}- />- <ShareToButton kind="series" ids={[s.id]} compact />- <SyncToPeerButton recordKind="series" recordId={s.id} compact />- {isConfirming(s.id) ? (- <ConfirmButtonPair- prompt="Delete?"- ariaLabel={`Confirm delete series ${s.name}`}- onConfirm={() => handleDelete(s)}- onCancel={cancelDelete}+ {/* Actions wrap to their own row under sm so the logline gets the full card width */}+ <div className="flex items-center gap-1 flex-wrap shrink-0">+ <SyncBadge+ status={syncBadgeStatus(sync, s.id)}+ onClick={() => navigate(`/pipeline/series/${encodeURIComponent(s.id)}/sync`)}/>- ) : (- <button- type="button"- onClick={() => requestDelete(s.id)}- className="p-2 text-gray-500 hover:text-port-error"- aria-label={`Delete series ${s.name}`}- title="Delete series"- >- <Trash2 size={16} />- </button>- )}+ <ShareToButton kind="series" ids={[s.id]} compact />+ <SyncToPeerButton recordKind="series" recordId={s.id} compact />+ {isConfirming(s.id) ? (+ <ConfirmButtonPair+ prompt="Delete?"+ ariaLabel={`Confirm delete series ${s.name}`}+ onConfirm={() => handleDelete(s)}+ onCancel={cancelDelete}+ />+ ) : (+ <button+ type="button"+ onClick={() => requestDelete(s.id)}+ className="p-2 text-gray-500 hover:text-port-error"+ aria-label={`Delete series ${s.name}`}+ title="Delete series"+ >+ <Trash2 size={16} />+ </button>+ )}+ </div></li>);})}diff --git a/client/src/pages/Pipeline.responsive.test.jsx b/client/src/pages/Pipeline.responsive.test.jsxnew file mode 100644index 0000000000..137288142b--- /dev/null+++ b/client/src/pages/Pipeline.responsive.test.jsx@@ -0,0 +1,74 @@+import { describe, it, expect, vi, beforeEach } from 'vitest';+import { render, screen } from '@testing-library/react';+import { MemoryRouter } from 'react-router';+import Pipeline from './Pipeline';++const listPipelineSeries = vi.fn();+const listUniverses = vi.fn();++vi.mock('../services/api', () => ({+ listPipelineSeries: (...a) => listPipelineSeries(...a),+ createPipelineSeries: vi.fn(),+ deletePipelineSeries: vi.fn(),+ generateSeriesTitleLogo: vi.fn(),+ generateSeriesConcepts: vi.fn(),+ listUniverses: (...a) => listUniverses(...a),+ WORLD_LOGLINE_MAX: 400,+ WORLD_PREMISE_MAX: 2000,+ WORLD_STYLE_NOTES_MAX: 2000,+}));++vi.mock('../hooks/useSyncIntegrity', () => ({+ useSyncIntegrity: () => ({ integrity: null }),+ syncBadgeStatus: () => 'not-syncing',+}));++// Sharing/sync affordances are exercised in their own suites; stub them so this+// test only asserts the row's stacking behavior.+vi.mock('../components/sharing/ShareToButton', () => ({ default: () => <button type="button">share</button> }));+vi.mock('../components/sharing/SyncToPeerButton', () => ({ default: () => <button type="button">sync-to-peer</button> }));+vi.mock('../components/moodBoard/MoodBoardReferenceStrip', () => ({ default: () => <div>mood-board</div> }));+vi.mock('../components/ui/Toast', () => ({ default: { success: vi.fn(), error: vi.fn() } }));++const SERIES = {+ id: 'series-1',+ name: 'Example Series',+ logline: 'A drifter walks into a salt town and leaves owing it everything.',+ issueCountTarget: 3,+};++function renderPage() {+ return render(+ <MemoryRouter initialEntries={['/pipeline']}>+ <Pipeline />+ </MemoryRouter>,+ );+}++describe('Pipeline series list — mobile layout', () => {+ beforeEach(() => {+ vi.clearAllMocks();+ listPipelineSeries.mockResolvedValue([SERIES]);+ listUniverses.mockResolvedValue([]);+ });++ it('stacks the row below sm so the logline gets the full card width', async () => {+ renderPage();++ const link = await screen.findByRole('link', { name: /Example Series/ });+ const row = link.closest('li');++ // Below sm the row is a column (content, then actions); sm+ restores the+ // side-by-side row. Without the stack the nowrap sync badge + icon buttons+ // hold their min-content width and squeeze the logline to ~one word/line.+ expect(row).toHaveClass('flex-col');+ expect(row).toHaveClass('sm:flex-row');++ // The trailing controls live in one shrink-0 group so they wrap together+ // rather than each competing with the text column for width.+ const actions = screen.getByRole('button', { name: /Delete series Example Series/ }).parentElement;+ expect(actions).toHaveClass('shrink-0');+ expect(actions).toHaveClass('flex-wrap');+ expect(actions.parentElement).toBe(row);+ });+});