Skip to content

fix(threads): show scheduled tasks as soon as agents create them - #818

Merged
nixuuu merged 1 commit into
devfrom
fix/show-scheduler-in-thread-summary
Nov 15, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/show-scheduler-in-thread-summary

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 15, 2026

Copy link
Copy Markdown
Member

Change

Agent-created schedules could stay hidden when a failed thread-details refresh left a cached empty list, even while live updates arrived. Keep the thread stream authoritative for schedules, including desktop remote mode and removal of the last task; use the cached panel list only while the thread's home is unreachable.

Subscribe to schedule changes before reading the initial stream controls so schedules created during watch startup are delivered immediately instead of waiting for the periodic refresh.

Verification

  • bun run check:tmp ./tests/integration/thread-schedule-watch.test.ts: 3 passed, 30 assertions, clean temporary directory. Startup regressions fail before the fix; coverage includes once/recurring creation and cancellation through paired desktop TLS/gRPC.
  • bun run --filter @canopy/web typecheck: 0 errors and warnings.
  • Scoped formatting/lint and git diff --check passed.
  • Browser inspection with fixture data in light/dark themes at desktop and phone widths: live creation/removal, stale cached lists, offline fallback, and long names. Reproduced the direct-remote panel failure with the original code, then verified the fix with an HTTP 503 panel response and live schedule updates.
  • No UI copy changes. Full repository checks and builds remain with CI.

Fixes: #559
Fixes: #541

Keep live schedules authoritative when the panel read is stale or fails, including desktop remote mode. Subscribe to schedule updates before the initial controls read so creation during watch startup is not lost.

Fixes: #559
Fixes: #541
@nixuuu
nixuuu enabled auto-merge (squash) November 15, 2026 10:43
@nixuuu
nixuuu merged commit 310b3a1 into dev Nov 15, 2026
11 checks passed
@nixuuu
nixuuu deleted the fix/show-scheduler-in-thread-summary branch November 15, 2026 10:55
nixuuu added a commit that referenced this pull request Nov 30, 2026
## Change

Raise the per-file limit to 8.5 MiB for `runtime/canopy-gateway.js` on
Windows x64. Keep the 8 MiB limit for all other sidecars and preserve
the package budgets, deduplication threshold and release checks.

The Windows gateway sidecar measured 8,359,417 B in Nightly #817 and
8,404,880 B in #818. The latter exceeded 8 MiB by 16,272 B, causing
electron-builder's `afterPack` check to fail before the installer was
built. Comparing the Bun module contributions is a follow-up.

[Windows Package
#817](https://github.com/itsoltech/canopy/actions/runs/46498146500/job/142133327006)
· [Windows Package
#818](https://github.com/itsoltech/canopy/actions/runs/46508889554/job/142171022548)

## Verification

- Local: scoped oxfmt and oxlint, diff check, and eight `packageMetrics`
cases covering the #818 bundle, the 8.5 MiB boundary, unaffected 8 MiB
limits and deduplication.
- CI: PR checks gate the merge. The PR workflow has Windows x64 source
checks but does not package or install the Windows desktop release.
Verify Windows packaging, signatures, installer smoke and upload in the
first scheduled Release containing this change. Check publication
separately.
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