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: make CoS task form responsive on mobile
[._.]/ Adam Eivy0665a8111c7e
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex c41c3f5724..428bec50a0 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -172,6 +172,7 @@## Changed+- **CoS task forms now fit narrow screens** — mobile task options stack into one column so pull-request completion and reviewer controls remain readable and usable without horizontal clipping.- **[issue-3060] CoS PR completion is now an explicit choice** — when a task opens a PR, choose **Review then merge**, **Merge on green CI**, or **Leave PR open** instead of inferring the outcome from a review-loop checkbox. The same default is available per managed app, new tasks save the selected policy, and existing tasks keep their current review-loop behavior without a migration. Prompt instructions and post-run cleanup now use that one policy too, so a leave-open task never starts a hidden review/merge follow-up.- **A CoS task that opens a PR without a Review Loop now merges it once CI is green, instead of leaving it open forever** — "Review Loop off" was being treated as "nobody merges this": the agent's completion workflow only got merge instructions when a reviewer was configured, and PortOS's own post-exit PR path only spawned a follow-up when there was a review to run. So every no-review-loop task ended with an orphaned PR and a leaked branch someone had to notice and merge by hand. The merge now always happens — gated on the review verdict when a loop is configured, on CI alone when it isn't: wait for the checks, fix a failing check or a base conflict, merge with a real merge commit, and verify the PR actually reached `MERGED` before exiting. Where PortOS opens the PR itself after the agent exits, it spawns a merge follow-up agent that does the same. **What to know:** scheduled task types that open a PR without a reviewer (`feature-ideas`, `do-replan`, `refresh-local-llm-catalog`) now land on the default branch on green CI rather than queueing a PR for you — turn on Review Loop for those if you want a reviewer first. **JIRA-tracked work is deliberately exempt**: `jira-sprint-manager` (and any task carrying a JIRA ticket) moves its ticket to "In Review" and hands the PR to a human, so nothing auto-merges it — a configured reviewer still runs, it just stops short of the merge. A PR is still left open, with the reason stated, when CI stays red after a genuine fix attempt or a conflict needs a human decision. Fixed alongside: a copilot-only Review Loop on a **GitLab** MR used to spawn no follow-up at all (Copilot is GitHub-only) and orphaned the MR — it now degrades to the same merge-on-green-CI follow-up, with `glab` commands instead of `gh`.- **[issue-2833] Decompose the ~1000-line `spawnTuiAgent()`** — extract the output buffering/spooling pipeline into `agentTuiSpawning/outputSpooler.js` and the failure-analysis + worktree-inspection helpers into `agentTuiSpawning/finalizeHelpers.js`, leaving `spawnTuiAgent` as a thinner orchestrator. No behavior change to spawn/timeout/completion semantics; adds unit coverage for both extracted modules.diff --git a/client/src/components/cos/TaskAddForm.jsx b/client/src/components/cos/TaskAddForm.jsxindex 823ebe8dd8..81d96809f9 100644--- a/client/src/components/cos/TaskAddForm.jsx+++ b/client/src/components/cos/TaskAddForm.jsx@@ -431,7 +431,7 @@ export default function TaskAddForm({ providers, apps, onTaskAdded, compact = fashowRepoPath/>)}- <div className="grid grid-cols-2 sm:flex sm:items-center gap-x-4 gap-y-1 sm:flex-wrap">+ <div className="grid grid-cols-1 sm:flex sm:items-center gap-x-4 gap-y-1 sm:flex-wrap"><label className="flex items-center gap-2 cursor-pointer select-none py-1"><inputtype="checkbox"diff --git a/client/src/components/cos/TaskAddForm.test.jsx b/client/src/components/cos/TaskAddForm.test.jsxnew file mode 100644index 0000000000..8fa9ebc54c--- /dev/null+++ b/client/src/components/cos/TaskAddForm.test.jsx@@ -0,0 +1,41 @@+import { describe, expect, it, vi, beforeEach } from 'vitest';+import { render, screen, waitFor } from '@testing-library/react';+import TaskAddForm from './TaskAddForm';++const api = vi.hoisted(() => ({+ getCosPopularTemplates: vi.fn(),+ getCodeReviewDefaults: vi.fn()+}));++vi.mock('../../services/api', () => api);++describe('TaskAddForm responsive layout', () => {+ beforeEach(() => {+ vi.clearAllMocks();+ api.getCosPopularTemplates.mockResolvedValue({ templates: [] });+ api.getCodeReviewDefaults.mockResolvedValue(null);+ });++ it('keeps PR completion controls full-width on mobile', async () => {+ render(+ <TaskAddForm+ providers={[]}+ apps={[{+ id: 'example-app',+ name: 'Example App',+ repoPath: 'example.com/repo',+ defaultOpenPR: true,+ defaultPrCompletion: 'review-then-merge'+ }]}+ defaultApp="example-app"+ onTaskAdded={vi.fn()}+ />+ );++ await waitFor(() => expect(screen.getByText('Reviewers (in order):')).toBeInTheDocument());++ const options = screen.getByRole('form', { name: 'Add new task' }).querySelector('div.grid');+ expect(options).toHaveClass('grid-cols-1');+ expect(options).not.toHaveClass('grid-cols-2');+ });+});