Skip to content

Prune stale sub-agent schedules#1504

Merged
threepointone merged 1 commit into
mainfrom
fix/sub-agent-schedule-log-spam
May 11, 2026
Merged

Prune stale sub-agent schedules#1504
threepointone merged 1 commit into
mainfrom
fix/sub-agent-schedule-log-spam

Conversation

@threepointone
Copy link
Copy Markdown
Contributor

@threepointone threepointone commented May 11, 2026

Summary

  • Prune stale facet-owned schedule rows when the owning sub-agent registry entry no longer exists, avoiding repeated alarm retries and error log spam.
  • Update sub-agent schedule tests to assert stale delayed and interval schedules are removed.
  • Add a shared Workers-test Vite plugin to strip dependency sourceMappingURL comments from node_modules loads, removing missing-source sourcemap warnings without muting normal warnings.

Test plan

  • npm run test:workers -- src/tests/sub-agent.test.ts
  • npx vitest --config packages/codemode/vitest.config.ts --run --passWithNoTests __no_tests__
  • npx vitest --config packages/shell/vitest.config.ts --run --passWithNoTests __no_tests__

Made with Cursor


Open in Devin Review

Avoid retrying impossible facet-owned schedules forever when their sub-agent registry entry is gone, and suppress noisy dependency sourcemap warnings in Workers tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 11, 2026

🦋 Changeset detected

Latest commit: 4c7de42

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
agents Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 11, 2026

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@1504

@cloudflare/ai-chat

npm i https://pkg.pr.new/@cloudflare/ai-chat@1504

@cloudflare/codemode

npm i https://pkg.pr.new/@cloudflare/codemode@1504

hono-agents

npm i https://pkg.pr.new/hono-agents@1504

@cloudflare/shell

npm i https://pkg.pr.new/@cloudflare/shell@1504

@cloudflare/think

npm i https://pkg.pr.new/@cloudflare/think@1504

@cloudflare/voice

npm i https://pkg.pr.new/@cloudflare/voice@1504

@cloudflare/worker-bundler

npm i https://pkg.pr.new/@cloudflare/worker-bundler@1504

commit: 4c7de42

@threepointone threepointone merged commit 5d27b71 into main May 11, 2026
4 checks passed
@threepointone threepointone deleted the fix/sub-agent-schedule-log-spam branch May 11, 2026 22:45
@github-actions github-actions Bot mentioned this pull request May 11, 2026
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