Skip to content

fix(worker): hide the connector notice on a thread's first turn - #809

Merged
nixuuu merged 2 commits into
devfrom
fix/changed-tools-warning
Nov 15, 2026
Merged

nixuuu merged 2 commits into
devfrom
fix/changed-tools-warning

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Every new thread showed a "Connector tools updated" notice (code connectors_applied, data []) on its first turn, even with no connectors.
  • Cause: a new thread has no saved connector catalog, so the first turn always counted as a change.
  • That first record can't simply be dropped: the gateway uses it to know the agent session has started (a newly granted connector shows pending instead of an unknown state).
  • Fix: the worker records a thread's first catalog under a separate code, connectors_baseline. The gateway treats it as applied; the shared turnNotices (web and mobile) doesn't show it. Real changes in later turns still show "Connector tools updated".

Fixes: #670

Verification

  • Local: bun run check:tmp ./tests/integration/connector-sessions.test.ts (3 pass, they failed on the first version of this PR), tsc --noEmit for packages/domain, apps/gateway, apps/worker, oxlint on edited files.
  • Left to CI: the rest of the test shards and builds.

🤖 Generated with Claude Code

A thread without a saved connector catalog was compared against an
undefined value, so its first turn always recorded "Connector tools
updated" with an empty catalog. Treat a missing catalog as empty.

Fixes: #670

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nixuuu
nixuuu enabled auto-merge (squash) November 15, 2026 08:56
The empty-catalog shortcut skipped the first record, but the gateway uses
it to know a session has started (connector state "pending" vs unknown).
Keep the record under a separate code that the gateway treats as applied
and the thread views do not show.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nixuuu nixuuu changed the title fix(worker): skip connector notice when a new thread has no connectors fix(worker): hide the connector notice on a thread's first turn Nov 15, 2026
@nixuuu
nixuuu merged commit 1c7fa6c into dev Nov 15, 2026
12 checks passed
@nixuuu
nixuuu deleted the fix/changed-tools-warning branch November 15, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant