Skip to content

fix(selfhost): refresh stale connection tools concurrently and expose EXECUTOR_TOOLS_SYNC_TTL_MS - #1560

Open
Adityakk9031 wants to merge 1 commit into
UsefulSoftwareCo:mainfrom
Adityakk9031:fix/sync-stale-connection-tools
Open

fix(selfhost): refresh stale connection tools concurrently and expose EXECUTOR_TOOLS_SYNC_TTL_MS#1560
Adityakk9031 wants to merge 1 commit into
UsefulSoftwareCo:mainfrom
Adityakk9031:fix/sync-stale-connection-tools

Conversation

@Adityakk9031

Copy link
Copy Markdown

Fixes #1519

  1. Concurrent Catalog Refresh: Refactored syncStaleConnectionTools in packages/core/sdk to collect connection sync tasks and execute them concurrently via Effect.all(tasks, { concurrency: 10 }) instead of sequentially awaiting them in a for...of loop.
  2. Expose EXECUTOR_TOOLS_SYNC_TTL_MS Config:
    • Extended HostConfigShape in packages/core/api with toolsSyncTtlMs and forwarded it to createExecutor.
    • Added parsing for EXECUTOR_TOOLS_SYNC_TTL_MS in apps/host-selfhost/src/config.ts ("0", "false", or "null" to disable automatic background catalog re-syncing, or a custom interval in ms).
    • Wired toolsSyncTtlMs in SelfHostHostConfig and added unit tests in apps/host-selfhost/src/executor-config.test.ts.

@Adityakk9031
Adityakk9031 force-pushed the fix/sync-stale-connection-tools branch from 67d03d9 to 5c37b31 Compare August 10, 2026 12:00
@Adityakk9031

Copy link
Copy Markdown
Author

@RhysSullivan have a look

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.

Self-host tools/list blocks on sequential stale remote catalog refresh

1 participant