Repository navigation
Conversation
Adds a migration; rolling back past this release needs the pre-deploy snapshot.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR: An agent can now message you first. With proactive on, it checks your calendar and personal WhatsApp every 30 minutes and tells you when to leave, when a meeting starts, when an event moves and who is still waiting for your reply, plus a morning and evening summary. It's per agent and off until you turn it on in the agent's new Proactive tab.
Demo
Red boxes mark what changed.
What changed
docs/rfc/proactive.md: the design and the decisions behind it.docs/PLAN.mdgets section 6d and the four new tables.eventsaction the engine reads.internal/proactive, a scheduler extension): ticks collect from the sources without the model, reconcile into anudgesledger (one row per key, so nothing is told twice), then onefastcall with zero tools picks what to send and words it. Leave-now and meeting-start nudges fire at their minute from a template, no model. Quiet hours, a per-hour cap, one escalation per chat, and morning and evening summaries. Adds migration0027_proactive.ndg:buttons (done, snooze 1h/3h/tomorrow, mute) and WhatsApp replies quoting the message, handled by the router before the model.getProactiveFn,saveProactiveFn,unmuteProactiveFn,checkProactiveNowFn(also MCP tools), and aproactiveconnector with chat tools (get_proactive,update_proactive,mute_proactive,unmute_proactive,list_nudges,check_proactive_now), offered only in your own turns in your own chats.WhatsApp needs zakiego/wa-hub#19 (structured
list_chatswith asincefilter). Until that's deployed, the WhatsApp source reports a clear error on the tab and calendar keeps working.How I checked
pnpm typecheck: exit 0.pnpm test: all 79 Go packages pass. apps/app 211 tests (7 new for the tab), apps/site 30, apps/host-bridge 36, apps/edge 11.gofmt -l .prints nothing,go vet ./...is clean,pnpm release checkpasses.worstfixture at 1280, 768 and 390 px. The live engine ticked against the dev stand-ins and showed real source errors on the tab. A switch change saved and survived a reload.toast.promisefor Check now.Changelog