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

address review (codex): clear app scope on shell/script jobs

Adam Eivy754b699fe249
diff --git a/client/src/components/cos/tabs/JobsTab.jsx b/client/src/components/cos/tabs/JobsTab.jsx
index 2ce9ade9ff..0dd105f18f 100644
--- a/client/src/components/cos/tabs/JobsTab.jsx
+++ b/client/src/components/cos/tabs/JobsTab.jsx
@@ -86,6 +86,12 @@ function normalizeJobPayload(formData) {
if (payload.type !== 'shell' && payload.type !== 'script') {
payload.command = null;
payload.triggerAction = null;
+ } else {
+ // App scope only applies to AI-agent jobs (the scope drives the agent's
+ // workspace). Shell/script jobs always run in the PortOS root, so clear any
+ // appId left over from when the job was an agent type — otherwise the saved
+ // job shows a misleading app badge while executing in root.
+ payload.appId = null;
}
// Empty app picker selection ('') → null so a PUT actively un-scopes the job
// back to global (undefined would be dropped from JSON and updateJob would