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

feat: show app selector in user task form

[._.]/ Adam Eivy315475cb666a
diff --git a/client/src/components/cos/TaskAddForm.jsx b/client/src/components/cos/TaskAddForm.jsx
index 69f34ff134..390653815d 100644
--- a/client/src/components/cos/TaskAddForm.jsx
+++ b/client/src/components/cos/TaskAddForm.jsx
@@ -861,6 +861,7 @@ export default function TaskAddForm({ providers, providersLoaded = true, apps, o
className="w-full px-3 py-2 bg-port-bg border border-port-border rounded-lg text-white text-base min-h-[44px]"
aria-required="true"
/>
+ {renderTargetApplicationPicker()}
<p className="text-xs text-gray-400 break-words" aria-label="Task execution summary">
{selectedApp?.name || 'PortOS'} · {orchestrationMode === 'orchestrated'
? `Orchestrated: ${ORCHESTRATION_ROLES_META.map(({ key, label }) => {
@@ -1145,6 +1146,19 @@ export default function TaskAddForm({ providers, providersLoaded = true, apps, o
);
}
+ function renderTargetApplicationPicker() {
+ return (
+ <AppContextPicker
+ apps={apps}
+ value={newTask.app}
+ onChange={handleAppChange}
+ label="Target application"
+ placeholder="PortOS (default)"
+ showRepoPath
+ />
+ );
+ }
+
function renderFullFormFields(section = 'all') {
return (
<>
@@ -1335,16 +1349,7 @@ export default function TaskAddForm({ providers, providersLoaded = true, apps, o
</div>
)}
- {!compact && (
- <AppContextPicker
- apps={apps}
- value={newTask.app}
- onChange={handleAppChange}
- label="Target application"
- placeholder="PortOS (default)"
- showRepoPath
- />
- )}
+ {!compact && !queueFirst && renderTargetApplicationPicker()}
{isFederated && (
<InstancePicker
id="task-target-instance"
diff --git a/client/src/components/cos/TaskAddForm.test.jsx b/client/src/components/cos/TaskAddForm.test.jsx
index a4f8e0501d..0b14c43908 100644
--- a/client/src/components/cos/TaskAddForm.test.jsx
+++ b/client/src/components/cos/TaskAddForm.test.jsx
@@ -150,6 +150,29 @@ describe('TaskAddForm responsive layout', () => {
expect(api.addCosTask).toHaveBeenCalledWith(expect.objectContaining({ app: 'chosen-app' }), { silent: true });
});
+ it('keeps the target app selector on the main queue-first form', async () => {
+ localStorage.clear();
+ api.addCosTask.mockResolvedValue({ id: 'example-task' });
+ const user = userEvent.setup();
+ render(<TaskAddForm queueFirst providers={[]} defaultApp="first-app"
+ apps={[{ id: 'first-app', name: 'First App' }, { id: 'chosen-app', name: 'Chosen App' }]}
+ onTaskAdded={vi.fn()} />);
+
+ const appSelect = screen.getByLabelText('Target application');
+ expect(appSelect).toHaveValue('first-app');
+ expect(appSelect.closest('#task-configuration')).toBeNull();
+ expect(screen.queryByRole('region', { name: 'Task configuration' })).not.toBeInTheDocument();
+
+ await user.selectOptions(appSelect, 'chosen-app');
+ await user.type(screen.getByRole('textbox', { name: /Task description/ }), 'Inspect the chosen app');
+ await user.click(screen.getByRole('button', { name: 'Add task' }));
+
+ expect(api.addCosTask).toHaveBeenCalledWith(expect.objectContaining({
+ app: 'chosen-app',
+ description: 'Inspect the chosen app',
+ }), { silent: true });
+ });
+
// #7796: hiding configuration must not reset the draft or silently change
// app completion defaults, and a failed submission must remain retryable.
it('keeps queue settings inline and retains drafts across collapse and failed submission', async () => {