Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

fix(agent): check app status with apps list, which posts no card

LeoXing2fbc72e0765a
diff --git a/apps/node-services/src/agent/prompt/compact-meta-instructions.ts b/apps/node-services/src/agent/prompt/compact-meta-instructions.ts
index ef115ad8..9e0a4df1 100644
--- a/apps/node-services/src/agent/prompt/compact-meta-instructions.ts
+++ b/apps/node-services/src/agent/prompt/compact-meta-instructions.ts
@@ -147,7 +147,7 @@ const authority = (agentType: AgentType, roomKind: MetaRoomKind): string => {
};
const CONNECTED_APPS = `
-- Connected apps: gmail, outlook, gcal, gdrive, slack, notion, and figma have their own commands (teamhub gmail --help). For other apps, find the tool with teamhub apps search "<the action in English, with the app name>", then run teamhub apps execute --connectionId <id> --toolSlug <slug> --toolVersion <version> --arguments '<json>'. Before saying whether an app is connected, run teamhub apps connect <app-key> and read its result: it returns the account, or posts an authorization card. Never resend a write whose outcome is unknown; check the app first.`;
+- Connected apps: gmail, outlook, gcal, gdrive, slack, notion, and figma have their own commands (teamhub gmail --help). For other apps, find the tool with teamhub apps search "<the action in English, with the app name>", then run teamhub apps execute --connectionId <id> --toolSlug <slug> --toolVersion <version> --arguments '<json>'. Before saying whether an app is connected, check teamhub apps list. When an app the Human wants to use has no account, teamhub apps connect <app-key> posts an authorization card. Never resend a write whose outcome is unknown; check the app first.`;
const commands = (agentType: AgentType, connectedApps: boolean): string =>
`TeamHub commands, all run through your shell tool (teamhub <domain> <action> --help explains each; credentials are installed, never read them)
diff --git a/apps/node-services/src/agent/prompt/meta-instructions.ts b/apps/node-services/src/agent/prompt/meta-instructions.ts
index aaaaafcb..1c0ba088 100644
--- a/apps/node-services/src/agent/prompt/meta-instructions.ts
+++ b/apps/node-services/src/agent/prompt/meta-instructions.ts
@@ -217,7 +217,7 @@ const WORKSPACE = `Your workspace
- Extract archives with tar --no-same-owner.`;
const CONNECTED_APPS = `
-- Connected apps: what earlier context says about connected apps can be out of date. Before telling the Human whether an app is connected, run teamhub apps connect <app-key> and read its result: it returns the delegated account, or posts an authorization card here instead of asking for credentials. Never automatically resend a teamhub apps execute call whose outcome is unknown; check the app first. To turn the Human's auto reminders for Gmail, Outlook, Google Calendar or Slack on or off, use teamhub apps auto-reminders list and set (Another Me only).`;
+- Connected apps: what earlier context says about connected apps can be out of date. Before telling the Human whether an app is connected, check teamhub apps list, which is always current. When the Human wants to use an app that isn't listed, run teamhub apps connect <app-key> to post an authorization card here instead of asking for credentials. Never automatically resend a teamhub apps execute call whose outcome is unknown; check the app first. To turn the Human's auto reminders for Gmail, Outlook, Google Calendar or Slack on or off, use teamhub apps auto-reminders list and set (Another Me only).`;
const commands = (
agentType: AgentType,
diff --git a/apps/node-services/tests/agent/__golden__/executor-hook-trace/cold-then-hot.jsonl b/apps/node-services/tests/agent/__golden__/executor-hook-trace/cold-then-hot.jsonl
index 772d1114..4de00cbe 100644
--- a/apps/node-services/tests/agent/__golden__/executor-hook-trace/cold-then-hot.jsonl
+++ b/apps/node-services/tests/agent/__golden__/executor-hook-trace/cold-then-hot.jsonl
@@ -2,7 +2,7 @@
{"hook":"context.onContextBound","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"bootstrap":"new"}
{"step":"state.enqueueTrustedTurn","messageIds":["m-1"],"runId":"run-1"}
{"hook":"activation.prepareRuntime","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"newSession":true}
-{"step":"backend.activate","developerInstructions":"sha256:87a46eb004b07205","mappings":1}
+{"step":"backend.activate","developerInstructions":"sha256:a144a97e5f7c2481","mappings":1}
{"step":"provider.createSession"}
{"step":"state.claimLocalRun","runId":"run-1","messageIds":["m-1"]}
{"hook":"context.prepareInput","messageId":"m-1"}
diff --git a/apps/node-services/tests/agent/__golden__/executor-hook-trace/developer-instructions.txt b/apps/node-services/tests/agent/__golden__/executor-hook-trace/developer-instructions.txt
index b1fc5377..0d1ba4bf 100644
--- a/apps/node-services/tests/agent/__golden__/executor-hook-trace/developer-instructions.txt
+++ b/apps/node-services/tests/agent/__golden__/executor-hook-trace/developer-instructions.txt
@@ -121,7 +121,7 @@ TeamHub commands
- Documents are identified by document_id, not filenames, and aren't mounted locally. You can read, edit and manage every Document your Human has. Find them with teamhub docs list (--shared lists the ones someone shared with you to look at), read them with teamhub docs get <document-id>, and create one with teamhub docs create --title "..." --file <markdown-path>. Deliver an existing file with teamhub message send --attach <path>.
- Tasks: teamhub task check lists the Tasks you delegated from this Room; teamhub task check --task-id <id> shows its status, recent activity, pending approvals, and last report. A Task's reports reach you as private Task callbacks; read one again with teamhub message read --inbox taskmeta:<task-id>.
- Routines: for something recurring in this Room, use teamhub routine create; for a one-off check at a set time, use --at <RFC 3339 time> instead of a schedule, never a recurring routine you plan to turn off later. Omit --mention-actor-id for plain text, pass self to wake yourself, or pass another Agent's actor id. To change one, get its id from teamhub routine list. Delete it when it is no longer needed, and to move it to another time, delete it and create a new one. Pause only when someone wants it stopped for now and resumed later. Delete or pause a routine someone else created only when they ask. Say it is deleted or paused only after the command succeeds. A routine wake is your own standing order, not someone typing: carry it out, and stay quiet when there's nothing worth saying.
-- Connected apps: what earlier context says about connected apps can be out of date. Before telling the Human whether an app is connected, run teamhub apps connect <app-key> and read its result: it returns the delegated account, or posts an authorization card here instead of asking for credentials. Never automatically resend a teamhub apps execute call whose outcome is unknown; check the app first. To turn the Human's auto reminders for Gmail, Outlook, Google Calendar or Slack on or off, use teamhub apps auto-reminders list and set (Another Me only).
+- Connected apps: what earlier context says about connected apps can be out of date. Before telling the Human whether an app is connected, check teamhub apps list, which is always current. When the Human wants to use an app that isn't listed, run teamhub apps connect <app-key> to post an authorization card here instead of asking for credentials. Never automatically resend a teamhub apps execute call whose outcome is unknown; check the app first. To turn the Human's auto reminders for Gmail, Outlook, Google Calendar or Slack on or off, use teamhub apps auto-reminders list and set (Another Me only).
- Cards: a command that needs a Human's decision (a question, an app authorization, an Agent change, a connector write, a Room creation, Document access) posts a card for that Human and returns at once. The decision arrives later as a new message here. Until then, keep doing work that doesn't depend on it; if everything depends on it, end your turn. Don't wait or poll for it, don't post the same card again, and never act as if it were decided.
- Questions: when you need your Sponsor to choose before you can go on, post a question card here. Only your Sponsor can answer it:
teamhub message ask-user --title "Friday team outing" --questions '[{"question":"Where should we go?","options":["Hotpot","BBQ"]},{"question":"What else would you like to do?","options":["KTV","Board games","Movie"],"multiple":true}]'
diff --git a/apps/node-services/tests/agent/__golden__/executor-hook-trace/release.jsonl b/apps/node-services/tests/agent/__golden__/executor-hook-trace/release.jsonl
index 64de5adc..7d202bfa 100644
--- a/apps/node-services/tests/agent/__golden__/executor-hook-trace/release.jsonl
+++ b/apps/node-services/tests/agent/__golden__/executor-hook-trace/release.jsonl
@@ -2,7 +2,7 @@
{"hook":"context.onContextBound","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"bootstrap":"new"}
{"step":"state.enqueueTrustedTurn","messageIds":["m-1"],"runId":"run-1"}
{"hook":"activation.prepareRuntime","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"newSession":true}
-{"step":"backend.activate","developerInstructions":"sha256:87a46eb004b07205","mappings":1}
+{"step":"backend.activate","developerInstructions":"sha256:a144a97e5f7c2481","mappings":1}
{"step":"provider.createSession"}
{"step":"state.claimLocalRun","runId":"run-1","messageIds":["m-1"]}
{"hook":"context.prepareInput","messageId":"m-1"}
diff --git a/apps/node-services/tests/agent/__golden__/executor-hook-trace/run-canceled.jsonl b/apps/node-services/tests/agent/__golden__/executor-hook-trace/run-canceled.jsonl
index 5f4e8440..801f55cb 100644
--- a/apps/node-services/tests/agent/__golden__/executor-hook-trace/run-canceled.jsonl
+++ b/apps/node-services/tests/agent/__golden__/executor-hook-trace/run-canceled.jsonl
@@ -2,7 +2,7 @@
{"hook":"context.onContextBound","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"bootstrap":"new"}
{"step":"state.enqueueTrustedTurn","messageIds":["m-1"],"runId":"run-1"}
{"hook":"activation.prepareRuntime","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"newSession":true}
-{"step":"backend.activate","developerInstructions":"sha256:87a46eb004b07205","mappings":1}
+{"step":"backend.activate","developerInstructions":"sha256:a144a97e5f7c2481","mappings":1}
{"step":"provider.createSession"}
{"step":"state.claimLocalRun","runId":"run-1","messageIds":["m-1"]}
{"hook":"context.prepareInput","messageId":"m-1"}
diff --git a/apps/node-services/tests/agent/__golden__/executor-hook-trace/run-failed.jsonl b/apps/node-services/tests/agent/__golden__/executor-hook-trace/run-failed.jsonl
index d5b40939..4d53b4ee 100644
--- a/apps/node-services/tests/agent/__golden__/executor-hook-trace/run-failed.jsonl
+++ b/apps/node-services/tests/agent/__golden__/executor-hook-trace/run-failed.jsonl
@@ -2,7 +2,7 @@
{"hook":"context.onContextBound","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"bootstrap":"new"}
{"step":"state.enqueueTrustedTurn","messageIds":["m-1"],"runId":"run-1"}
{"hook":"activation.prepareRuntime","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"newSession":true}
-{"step":"backend.activate","developerInstructions":"sha256:87a46eb004b07205","mappings":1}
+{"step":"backend.activate","developerInstructions":"sha256:a144a97e5f7c2481","mappings":1}
{"step":"provider.createSession"}
{"step":"state.claimLocalRun","runId":"run-1","messageIds":["m-1"]}
{"hook":"context.prepareInput","messageId":"m-1"}
diff --git a/apps/node-services/tests/agent/__golden__/executor-hook-trace/steer.jsonl b/apps/node-services/tests/agent/__golden__/executor-hook-trace/steer.jsonl
index 00cb7ac8..f09faec9 100644
--- a/apps/node-services/tests/agent/__golden__/executor-hook-trace/steer.jsonl
+++ b/apps/node-services/tests/agent/__golden__/executor-hook-trace/steer.jsonl
@@ -2,7 +2,7 @@
{"hook":"context.onContextBound","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"bootstrap":"new"}
{"step":"state.enqueueTrustedTurn","messageIds":["m-1"],"runId":"run-1"}
{"hook":"activation.prepareRuntime","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"newSession":true}
-{"step":"backend.activate","developerInstructions":"sha256:87a46eb004b07205","mappings":1}
+{"step":"backend.activate","developerInstructions":"sha256:a144a97e5f7c2481","mappings":1}
{"step":"provider.createSession"}
{"step":"state.claimLocalRun","runId":"run-1","messageIds":["m-1"]}
{"hook":"context.prepareInput","messageId":"m-1"}
diff --git a/apps/node-services/tests/agent/__golden__/executor-hook-trace/stop-during-submit.jsonl b/apps/node-services/tests/agent/__golden__/executor-hook-trace/stop-during-submit.jsonl
index 011bc377..b298df8d 100644
--- a/apps/node-services/tests/agent/__golden__/executor-hook-trace/stop-during-submit.jsonl
+++ b/apps/node-services/tests/agent/__golden__/executor-hook-trace/stop-during-submit.jsonl
@@ -2,7 +2,7 @@
{"hook":"context.onContextBound","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"bootstrap":"new"}
{"step":"state.enqueueTrustedTurn","messageIds":["m-1"],"runId":"run-1"}
{"hook":"activation.prepareRuntime","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"newSession":true}
-{"step":"backend.activate","developerInstructions":"sha256:87a46eb004b07205","mappings":1}
+{"step":"backend.activate","developerInstructions":"sha256:a144a97e5f7c2481","mappings":1}
{"mark":"stop during submit"}
{"step":"state.enqueueTrustedTurn","messageIds":["m-1"],"runId":"run-1"}
{"step":"state.cancelLocalRun","runId":"run-1","status":"canceled"}
diff --git a/apps/node-services/tests/agent/__golden__/executor-hook-trace/throwing-handlers.jsonl b/apps/node-services/tests/agent/__golden__/executor-hook-trace/throwing-handlers.jsonl
index b2ddef93..c5bdae45 100644
--- a/apps/node-services/tests/agent/__golden__/executor-hook-trace/throwing-handlers.jsonl
+++ b/apps/node-services/tests/agent/__golden__/executor-hook-trace/throwing-handlers.jsonl
@@ -2,7 +2,7 @@
{"hook":"context.onContextBound","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"bootstrap":"new"}
{"step":"state.enqueueTrustedTurn","messageIds":["m-1"],"runId":"run-1"}
{"hook":"activation.prepareRuntime","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"newSession":true}
-{"step":"backend.activate","developerInstructions":"sha256:87a46eb004b07205","mappings":1}
+{"step":"backend.activate","developerInstructions":"sha256:a144a97e5f7c2481","mappings":1}
{"step":"provider.createSession"}
{"step":"state.claimLocalRun","runId":"run-1","messageIds":["m-1"]}
{"hook":"context.prepareInput","messageId":"m-1"}
diff --git a/apps/node-services/tests/agent/__golden__/executor-hook-trace/throwing-input-hook.jsonl b/apps/node-services/tests/agent/__golden__/executor-hook-trace/throwing-input-hook.jsonl
index 700c0b93..aadab86c 100644
--- a/apps/node-services/tests/agent/__golden__/executor-hook-trace/throwing-input-hook.jsonl
+++ b/apps/node-services/tests/agent/__golden__/executor-hook-trace/throwing-input-hook.jsonl
@@ -2,7 +2,7 @@
{"hook":"context.onContextBound","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"bootstrap":"new"}
{"step":"state.enqueueTrustedTurn","messageIds":["m-1"],"runId":"run-1"}
{"hook":"activation.prepareRuntime","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"newSession":true}
-{"step":"backend.activate","developerInstructions":"sha256:87a46eb004b07205","mappings":1}
+{"step":"backend.activate","developerInstructions":"sha256:a144a97e5f7c2481","mappings":1}
{"step":"provider.createSession"}
{"step":"state.claimLocalRun","runId":"run-1","messageIds":["m-1"]}
{"hook":"prepareInput","feature":"trace-failing","threw":true}
diff --git a/apps/node-services/tests/agent/__golden__/executor-hook-trace/timer-maintenance.jsonl b/apps/node-services/tests/agent/__golden__/executor-hook-trace/timer-maintenance.jsonl
index 690dd2a2..2930fb9c 100644
--- a/apps/node-services/tests/agent/__golden__/executor-hook-trace/timer-maintenance.jsonl
+++ b/apps/node-services/tests/agent/__golden__/executor-hook-trace/timer-maintenance.jsonl
@@ -2,7 +2,7 @@
{"hook":"context.onContextBound","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"bootstrap":"new"}
{"step":"state.enqueueTrustedTurn","messageIds":["m-1"],"runId":"run-1"}
{"hook":"activation.prepareRuntime","context":{"kind":"meta","agentId":"agent-trace","roomId":"room-trace"},"newSession":true}
-{"step":"backend.activate","developerInstructions":"sha256:87a46eb004b07205","mappings":1}
+{"step":"backend.activate","developerInstructions":"sha256:a144a97e5f7c2481","mappings":1}
{"step":"provider.createSession"}
{"step":"state.claimLocalRun","runId":"run-1","messageIds":["m-1"]}
{"hook":"context.prepareInput","messageId":"m-1"}
diff --git a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration-compact.txt b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration-compact.txt
index 2f55bb04..1f697a0d 100644
--- a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration-compact.txt
+++ b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration-compact.txt
@@ -78,7 +78,7 @@ TeamHub commands, all run through your shell tool (teamhub <domain> <action> --h
Add "multiple": true to allow several options. Every question must be answered. Ask an open question or a missing fact in your reply instead.
- To show something the person looks at or uses here and now (a quick chart, dashboard, checklist or small tool), send it inline as a chat card (read the chat-card skill first); use the artifact skill only for a file to share, print, present or keep, or when a file is asked for.
- Agents: teamhub room invite --agent-id <actor-id> brings an Agent from teamhub agent list into this Room (not a direct chat); teamhub agent create --name "<name>" --prompt "<working instructions>" adds a new teammate; teamhub agent update --agent-id <actor-id> --prompt "..." changes an Agent you manage. A change to an established Agent waits for approval.
-- Connected apps: gmail, outlook, gcal, gdrive, slack, notion, and figma have their own commands (teamhub gmail --help). For other apps, find the tool with teamhub apps search "<the action in English, with the app name>", then run teamhub apps execute --connectionId <id> --toolSlug <slug> --toolVersion <version> --arguments '<json>'. Before saying whether an app is connected, run teamhub apps connect <app-key> and read its result: it returns the account, or posts an authorization card. Never resend a write whose outcome is unknown; check the app first.
+- Connected apps: gmail, outlook, gcal, gdrive, slack, notion, and figma have their own commands (teamhub gmail --help). For other apps, find the tool with teamhub apps search "<the action in English, with the app name>", then run teamhub apps execute --connectionId <id> --toolSlug <slug> --toolVersion <version> --arguments '<json>'. Before saying whether an app is connected, check teamhub apps list. When an app the Human wants to use has no account, teamhub apps connect <app-key> posts an authorization card. Never resend a write whose outcome is unknown; check the app first.
- With --operation-id, use a unique id per write; after an unknown outcome, rerun the same command with the id the error printed.
<personal-knowledge-policy>
diff --git a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration.txt b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration.txt
index 886ffbc4..c10c0aec 100644
--- a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration.txt
+++ b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration.txt
@@ -127,7 +127,7 @@ TeamHub commands
- Documents are identified by document_id, not filenames, and aren't mounted locally. You can read, edit and manage every Document your Human has. Find them with teamhub docs list (--shared lists the ones someone shared with you to look at), read them with teamhub docs get <document-id>, and create one with teamhub docs create --title "..." --file <markdown-path>. Deliver an existing file with teamhub message send --attach <path>.
- Tasks: teamhub task check lists the Tasks you delegated from this Room; teamhub task check --task-id <id> shows its status, recent activity, pending approvals, and last report. A Task's reports reach you as private Task callbacks; read one again with teamhub message read --inbox taskmeta:<task-id>.
- Routines: for something recurring in this Room, use teamhub routine create; for a one-off check at a set time, use --at <RFC 3339 time> instead of a schedule, never a recurring routine you plan to turn off later. Omit --mention-actor-id for plain text, pass self to wake yourself, or pass another Agent's actor id. To change one, get its id from teamhub routine list. Delete it when it is no longer needed, and to move it to another time, delete it and create a new one. Pause only when someone wants it stopped for now and resumed later. Delete or pause a routine someone else created only when they ask. Say it is deleted or paused only after the command succeeds. A routine wake is your own standing order, not someone typing: carry it out, and stay quiet when there's nothing worth saying.
-- Connected apps: what earlier context says about connected apps can be out of date. Before telling the Human whether an app is connected, run teamhub apps connect <app-key> and read its result: it returns the delegated account, or posts an authorization card here instead of asking for credentials. Never automatically resend a teamhub apps execute call whose outcome is unknown; check the app first. To turn the Human's auto reminders for Gmail, Outlook, Google Calendar or Slack on or off, use teamhub apps auto-reminders list and set (Another Me only).
+- Connected apps: what earlier context says about connected apps can be out of date. Before telling the Human whether an app is connected, check teamhub apps list, which is always current. When the Human wants to use an app that isn't listed, run teamhub apps connect <app-key> to post an authorization card here instead of asking for credentials. Never automatically resend a teamhub apps execute call whose outcome is unknown; check the app first. To turn the Human's auto reminders for Gmail, Outlook, Google Calendar or Slack on or off, use teamhub apps auto-reminders list and set (Another Me only).
- Cards: a command that needs a Human's decision (a question, an app authorization, an Agent change, a connector write, a Room creation, Document access) posts a card for that Human and returns at once. The decision arrives later as a new message here. Until then, keep doing work that doesn't depend on it; if everything depends on it, end your turn. Don't wait or poll for it, don't post the same card again, and never act as if it were decided.
- Questions: when you need your Sponsor to choose before you can go on, post a question card here. Only your Sponsor can answer it:
teamhub message ask-user --title "Friday team outing" --questions '[{"question":"Where should we go?","options":["Hotpot","BBQ"]},{"question":"What else would you like to do?","options":["KTV","Board games","Movie"],"multiple":true}]'
diff --git a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-direct-compact.txt b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-direct-compact.txt
index 92712e4f..5a792638 100644
--- a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-direct-compact.txt
+++ b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-direct-compact.txt
@@ -70,7 +70,7 @@ TeamHub commands, all run through your shell tool (teamhub <domain> <action> --h
Add "multiple": true to allow several options. Every question must be answered. Ask an open question or a missing fact in your reply instead.
- To show something the person looks at or uses here and now (a quick chart, dashboard, checklist or small tool), send it inline as a chat card (read the chat-card skill first); use the artifact skill only for a file to share, print, present or keep, or when a file is asked for.
- Agents: teamhub room invite --agent-id <actor-id> brings an Agent from teamhub agent list into this Room (not a direct chat); teamhub agent create --name "<name>" --prompt "<working instructions>" adds a new teammate; teamhub agent update --agent-id <actor-id> --prompt "..." changes an Agent you manage. A change to an established Agent waits for approval.
-- Connected apps: gmail, outlook, gcal, gdrive, slack, notion, and figma have their own commands (teamhub gmail --help). For other apps, find the tool with teamhub apps search "<the action in English, with the app name>", then run teamhub apps execute --connectionId <id> --toolSlug <slug> --toolVersion <version> --arguments '<json>'. Before saying whether an app is connected, run teamhub apps connect <app-key> and read its result: it returns the account, or posts an authorization card. Never resend a write whose outcome is unknown; check the app first.
+- Connected apps: gmail, outlook, gcal, gdrive, slack, notion, and figma have their own commands (teamhub gmail --help). For other apps, find the tool with teamhub apps search "<the action in English, with the app name>", then run teamhub apps execute --connectionId <id> --toolSlug <slug> --toolVersion <version> --arguments '<json>'. Before saying whether an app is connected, check teamhub apps list. When an app the Human wants to use has no account, teamhub apps connect <app-key> posts an authorization card. Never resend a write whose outcome is unknown; check the app first.
- With --operation-id, use a unique id per write; after an unknown outcome, rerun the same command with the id the error printed.
<personal-knowledge-policy>
diff --git a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-direct.txt b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-direct.txt
index 2a474715..4b2829bc 100644
--- a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-direct.txt
+++ b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-direct.txt
@@ -111,7 +111,7 @@ TeamHub commands
- Documents are identified by document_id, not filenames, and aren't mounted locally. You can read, edit and manage every Document your Human has. Find them with teamhub docs list (--shared lists the ones someone shared with you to look at), read them with teamhub docs get <document-id>, and create one with teamhub docs create --title "..." --file <markdown-path>. Deliver an existing file with teamhub message send --attach <path>.
- Tasks: teamhub task check lists the Tasks you delegated from this Room; teamhub task check --task-id <id> shows its status, recent activity, pending approvals, and last report. A Task's reports reach you as private Task callbacks; read one again with teamhub message read --inbox taskmeta:<task-id>.
- Routines: for something recurring in this Room, use teamhub routine create; for a one-off check at a set time, use --at <RFC 3339 time> instead of a schedule, never a recurring routine you plan to turn off later. Omit --mention-actor-id for plain text, pass self to wake yourself, or pass another Agent's actor id. To change one, get its id from teamhub routine list. Delete it when it is no longer needed, and to move it to another time, delete it and create a new one. Pause only when someone wants it stopped for now and resumed later. Delete or pause a routine someone else created only when they ask. Say it is deleted or paused only after the command succeeds. A routine wake is your own standing order, not someone typing: carry it out, and stay quiet when there's nothing worth saying.
-- Connected apps: what earlier context says about connected apps can be out of date. Before telling the Human whether an app is connected, run teamhub apps connect <app-key> and read its result: it returns the delegated account, or posts an authorization card here instead of asking for credentials. Never automatically resend a teamhub apps execute call whose outcome is unknown; check the app first. To turn the Human's auto reminders for Gmail, Outlook, Google Calendar or Slack on or off, use teamhub apps auto-reminders list and set (Another Me only).
+- Connected apps: what earlier context says about connected apps can be out of date. Before telling the Human whether an app is connected, check teamhub apps list, which is always current. When the Human wants to use an app that isn't listed, run teamhub apps connect <app-key> to post an authorization card here instead of asking for credentials. Never automatically resend a teamhub apps execute call whose outcome is unknown; check the app first. To turn the Human's auto reminders for Gmail, Outlook, Google Calendar or Slack on or off, use teamhub apps auto-reminders list and set (Another Me only).
- Cards: a command that needs a Human's decision (a question, an app authorization, an Agent change, a connector write, a Room creation, Document access) posts a card for that Human and returns at once. The decision arrives later as a new message here. Until then, keep doing work that doesn't depend on it; if everything depends on it, end your turn. Don't wait or poll for it, don't post the same card again, and never act as if it were decided.
- Questions: when you need your Sponsor to choose before you can go on, post a question card here. Only your Sponsor can answer it:
teamhub message ask-user --title "Friday team outing" --questions '[{"question":"Where should we go?","options":["Hotpot","BBQ"]},{"question":"What else would you like to do?","options":["KTV","Board games","Movie"],"multiple":true}]'
diff --git a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-collaboration-compact.txt b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-collaboration-compact.txt
index 22c25d73..0092ac72 100644
--- a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-collaboration-compact.txt
+++ b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-collaboration-compact.txt
@@ -76,7 +76,7 @@ TeamHub commands, all run through your shell tool (teamhub <domain> <action> --h
Add "multiple": true to allow several options. Every question must be answered. Ask an open question or a missing fact in your reply instead.
- To show something the person looks at or uses here and now (a quick chart, dashboard, checklist or small tool), send it inline as a chat card (read the chat-card skill first); use the artifact skill only for a file to share, print, present or keep, or when a file is asked for.
- Agents: teamhub room invite --agent-id <actor-id> brings an Agent from teamhub agent list into this Room (not a direct chat); teamhub agent create --name "<name>" --prompt "<working instructions>" adds a new teammate; teamhub agent update --prompt "..." changes you, or add --agent-id <actor-id> for an Agent you manage. A change to an established Agent waits for approval.
-- Connected apps: gmail, outlook, gcal, gdrive, slack, notion, and figma have their own commands (teamhub gmail --help). For other apps, find the tool with teamhub apps search "<the action in English, with the app name>", then run teamhub apps execute --connectionId <id> --toolSlug <slug> --toolVersion <version> --arguments '<json>'. Before saying whether an app is connected, run teamhub apps connect <app-key> and read its result: it returns the account, or posts an authorization card. Never resend a write whose outcome is unknown; check the app first.
+- Connected apps: gmail, outlook, gcal, gdrive, slack, notion, and figma have their own commands (teamhub gmail --help). For other apps, find the tool with teamhub apps search "<the action in English, with the app name>", then run teamhub apps execute --connectionId <id> --toolSlug <slug> --toolVersion <version> --arguments '<json>'. Before saying whether an app is connected, check teamhub apps list. When an app the Human wants to use has no account, teamhub apps connect <app-key> posts an authorization card. Never resend a write whose outcome is unknown; check the app first.
- With --operation-id, use a unique id per write; after an unknown outcome, rerun the same command with the id the error printed.
<personal-knowledge-policy>
diff --git a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-collaboration.txt b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-collaboration.txt
index d768e446..6200c17f 100644
--- a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-collaboration.txt
+++ b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-collaboration.txt
@@ -119,7 +119,7 @@ TeamHub commands
- Documents are identified by document_id, not filenames, and aren't mounted locally. You can read, edit and manage every Document your Human has. Find them with teamhub docs list (--shared lists the ones someone shared with you to look at), read them with teamhub docs get <document-id>, and create one with teamhub docs create --title "..." --file <markdown-path>. Deliver an existing file with teamhub message send --attach <path>.
- Tasks: teamhub task check lists the Tasks you delegated from this Room; teamhub task check --task-id <id> shows its status, recent activity, pending approvals, and last report. A Task's reports reach you as private Task callbacks; read one again with teamhub message read --inbox taskmeta:<task-id>.
- Routines: for something recurring in this Room, use teamhub routine create; for a one-off check at a set time, use --at <RFC 3339 time> instead of a schedule, never a recurring routine you plan to turn off later. Omit --mention-actor-id for plain text, pass self to wake yourself, or pass another Agent's actor id. To change one, get its id from teamhub routine list. Delete it when it is no longer needed, and to move it to another time, delete it and create a new one. Pause only when someone wants it stopped for now and resumed later. Delete or pause a routine someone else created only when they ask. Say it is deleted or paused only after the command succeeds. A routine wake is your own standing order, not someone typing: carry it out, and stay quiet when there's nothing worth saying.
-- Connected apps: what earlier context says about connected apps can be out of date. Before telling the Human whether an app is connected, run teamhub apps connect <app-key> and read its result: it returns the delegated account, or posts an authorization card here instead of asking for credentials. Never automatically resend a teamhub apps execute call whose outcome is unknown; check the app first. To turn the Human's auto reminders for Gmail, Outlook, Google Calendar or Slack on or off, use teamhub apps auto-reminders list and set (Another Me only).
+- Connected apps: what earlier context says about connected apps can be out of date. Before telling the Human whether an app is connected, check teamhub apps list, which is always current. When the Human wants to use an app that isn't listed, run teamhub apps connect <app-key> to post an authorization card here instead of asking for credentials. Never automatically resend a teamhub apps execute call whose outcome is unknown; check the app first. To turn the Human's auto reminders for Gmail, Outlook, Google Calendar or Slack on or off, use teamhub apps auto-reminders list and set (Another Me only).
- Cards: a command that needs a Human's decision (a question, an app authorization, an Agent change, a connector write, a Room creation, Document access) posts a card for that Human and returns at once. The decision arrives later as a new message here. Until then, keep doing work that doesn't depend on it; if everything depends on it, end your turn. Don't wait or poll for it, don't post the same card again, and never act as if it were decided.
- Questions: when you need your Sponsor to choose before you can go on, post a question card here. Only your Sponsor can answer it:
teamhub message ask-user --title "Friday team outing" --questions '[{"question":"Where should we go?","options":["Hotpot","BBQ"]},{"question":"What else would you like to do?","options":["KTV","Board games","Movie"],"multiple":true}]'
diff --git a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-direct-compact.txt b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-direct-compact.txt
index 9247e24c..c4a5030a 100644
--- a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-direct-compact.txt
+++ b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-direct-compact.txt
@@ -68,7 +68,7 @@ TeamHub commands, all run through your shell tool (teamhub <domain> <action> --h
Add "multiple": true to allow several options. Every question must be answered. Ask an open question or a missing fact in your reply instead.
- To show something the person looks at or uses here and now (a quick chart, dashboard, checklist or small tool), send it inline as a chat card (read the chat-card skill first); use the artifact skill only for a file to share, print, present or keep, or when a file is asked for.
- Agents: teamhub room invite --agent-id <actor-id> brings an Agent from teamhub agent list into this Room (not a direct chat); teamhub agent create --name "<name>" --prompt "<working instructions>" adds a new teammate; teamhub agent update --prompt "..." changes you, or add --agent-id <actor-id> for an Agent you manage. A change to an established Agent waits for approval.
-- Connected apps: gmail, outlook, gcal, gdrive, slack, notion, and figma have their own commands (teamhub gmail --help). For other apps, find the tool with teamhub apps search "<the action in English, with the app name>", then run teamhub apps execute --connectionId <id> --toolSlug <slug> --toolVersion <version> --arguments '<json>'. Before saying whether an app is connected, run teamhub apps connect <app-key> and read its result: it returns the account, or posts an authorization card. Never resend a write whose outcome is unknown; check the app first.
+- Connected apps: gmail, outlook, gcal, gdrive, slack, notion, and figma have their own commands (teamhub gmail --help). For other apps, find the tool with teamhub apps search "<the action in English, with the app name>", then run teamhub apps execute --connectionId <id> --toolSlug <slug> --toolVersion <version> --arguments '<json>'. Before saying whether an app is connected, check teamhub apps list. When an app the Human wants to use has no account, teamhub apps connect <app-key> posts an authorization card. Never resend a write whose outcome is unknown; check the app first.
- With --operation-id, use a unique id per write; after an unknown outcome, rerun the same command with the id the error printed.
<personal-knowledge-policy>
diff --git a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-direct.txt b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-direct.txt
index 348cf0a7..1a605a6a 100644
--- a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-direct.txt
+++ b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-general-direct.txt
@@ -108,7 +108,7 @@ TeamHub commands
- Documents are identified by document_id, not filenames, and aren't mounted locally. You can read, edit and manage every Document your Human has. Find them with teamhub docs list (--shared lists the ones someone shared with you to look at), read them with teamhub docs get <document-id>, and create one with teamhub docs create --title "..." --file <markdown-path>. Deliver an existing file with teamhub message send --attach <path>.
- Tasks: teamhub task check lists the Tasks you delegated from this Room; teamhub task check --task-id <id> shows its status, recent activity, pending approvals, and last report. A Task's reports reach you as private Task callbacks; read one again with teamhub message read --inbox taskmeta:<task-id>.
- Routines: for something recurring in this Room, use teamhub routine create; for a one-off check at a set time, use --at <RFC 3339 time> instead of a schedule, never a recurring routine you plan to turn off later. Omit --mention-actor-id for plain text, pass self to wake yourself, or pass another Agent's actor id. To change one, get its id from teamhub routine list. Delete it when it is no longer needed, and to move it to another time, delete it and create a new one. Pause only when someone wants it stopped for now and resumed later. Delete or pause a routine someone else created only when they ask. Say it is deleted or paused only after the command succeeds. A routine wake is your own standing order, not someone typing: carry it out, and stay quiet when there's nothing worth saying.
-- Connected apps: what earlier context says about connected apps can be out of date. Before telling the Human whether an app is connected, run teamhub apps connect <app-key> and read its result: it returns the delegated account, or posts an authorization card here instead of asking for credentials. Never automatically resend a teamhub apps execute call whose outcome is unknown; check the app first. To turn the Human's auto reminders for Gmail, Outlook, Google Calendar or Slack on or off, use teamhub apps auto-reminders list and set (Another Me only).
+- Connected apps: what earlier context says about connected apps can be out of date. Before telling the Human whether an app is connected, check teamhub apps list, which is always current. When the Human wants to use an app that isn't listed, run teamhub apps connect <app-key> to post an authorization card here instead of asking for credentials. Never automatically resend a teamhub apps execute call whose outcome is unknown; check the app first. To turn the Human's auto reminders for Gmail, Outlook, Google Calendar or Slack on or off, use teamhub apps auto-reminders list and set (Another Me only).
- Cards: a command that needs a Human's decision (a question, an app authorization, an Agent change, a connector write, a Room creation, Document access) posts a card for that Human and returns at once. The decision arrives later as a new message here. Until then, keep doing work that doesn't depend on it; if everything depends on it, end your turn. Don't wait or poll for it, don't post the same card again, and never act as if it were decided.
- Questions: when you need your Sponsor to choose before you can go on, post a question card here. Only your Sponsor can answer it:
teamhub message ask-user --title "Friday team outing" --questions '[{"question":"Where should we go?","options":["Hotpot","BBQ"]},{"question":"What else would you like to do?","options":["KTV","Board games","Movie"],"multiple":true}]'
diff --git a/apps/teamhub/internal/typedcard/profile_setup.go b/apps/teamhub/internal/typedcard/profile_setup.go
index 87fdc369..04efa5a5 100644
--- a/apps/teamhub/internal/typedcard/profile_setup.go
+++ b/apps/teamhub/internal/typedcard/profile_setup.go
@@ -161,7 +161,7 @@ func onboardingStatusText(status onboardingStatus) string {
if len(status.connections) == 0 {
lines = append(lines, "Connected apps right now: none.")
} else {
- lines = append(lines, "Connected apps right now (no need to run teamhub apps list):")
+ lines = append(lines, "Connected apps right now:")
for _, connection := range status.connections {
line := "- " + connection.AppName
if connection.AccountLabel != "" {