Repository navigation
feat(chat): add What's new's second batch, for Wave 3 and agents going live (W4-22b) - #2043
Merged
gkhngyk merged 18 commits intoNov 4, 2026
Merged
Conversation
…3-DB, 00457–00459) Chat's Wave 3 tables in one PR (one DB PR per wave), behind CHAT_AGENTIC: nothing reads or writes them while the flag is off. Tables, types, tests and the demo's coverage only; the code that uses them comes in W3-01, W3-06 and W3-11. Every new table has row level security on; members only ever read, anon gets nothing, and every write is the server's. - 00457: chat_schedules (CHAT-12): once, recurring or a follow-up check; run at / ready by, due and next run, the RRULE and time zone; title, prompt or skill, the brand fixed at creation, the creator it acts as and its own chat; delivery to chat and/or email, recipients only people of the workspace (a trigger checks), change-only with the last fingerprint; mode, model, effort; on/off with the reason, failures in a row, the one retry; a follow-up check's target, metric and who set it (card or full_auto, the latter only for follow-up checks). A job whose brand or creator is deleted turns off (missing_source, owner_role) instead of running on without them. chat_schedule_runs: slot and attempt (unique, so a slot never runs twice), Run now, the Chat run and answer, status, parts done, fingerprint, usage as a share, email outcome. chat_conversations.schedule_id with origin 'schedule' (one live chat per job; it stays the creator's), prompt_improve_usage.schedule_id, and reserve_chat_ai_usage taking p_schedule_id (default null, old calls still match): the row is named by the chat's job, a job that isn't the chat's is refused. Creator and Admins read a job, within their brands. - 00458: chat_skills (CHAT-13): name unique in the workspace in the format's rules, body up to 50 KB, licenses MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC (an import needs one), source user or import with the pinned commit and checksum, scan and removed parts, review status (only an approved skill can be on), private or workspace. Private or unapproved: creator and Admins; approved workspace skills: every member. chat_settings.disabled_skills for library skills. - 00459: chat_memory_items (CHAT-14): Me, brand and workspace lines, 1–300 characters, at most 4,000 a scope (a trigger under a lock per scope, deleted lines left out), one profile line a person, deleted_at for Undo; brand lines go with the brand, Me lines with the account and when the person leaves the workspace (trigger on profiles). Me: only its person; brand lines: brand access; workspace lines: every member. chat_settings.memory_enabled and chat_user_prefs.memory_enabled, both on. web/src/types/supabase.ts carries the new tables and columns; schema.test.ts checks the Wave 3 policies, limits, vocabularies, triggers and the hold's signature from the SQL; brand-access-policies.test.js lists the new tables; the demo coverage skips chat_schedules and chat_memory_items. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # server/src/lib/brand-access-policies.test.js # web/src/types/supabase.ts
…brary, agent calls and outside e-mails (W4-DB, 00462–00467) - 00462: the price catalog's supported_parameters and context_length, and prompt_improve_usage.units for image rows. - 00463: content_drafts.origin and conversation_id; drafts with an action become action_center without touching updated_at; a member may say editor or chat and name only a chat of their own. - 00464: chat_whats_new_reads, a person's own rows. - 00465: chat_skills source library, library_ref and update_checked_at; 00458's unnamed pin rule named and widened. - 00466: chat_agent_versions.can_call and agent-called runs, one level deep, at most 3 a run. - 00467: chat_schedules.external_recipients and chat_outbound_emails, each sent only with a click. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # web/src/types/supabase.ts
…hat's get_whats_new (W4-20)
What's new entries live in whats-new/{slug}.md, approved by Cihan in the
pull request, and the approved ones in entries.json, which a test keeps in
step with the folder. Every entry is checked: 3–4 lines of at most 120
characters, no model names, API terms, versions, internal codes, prices or
plan names. A person sees their plan's entries, the named one first, then
unread, then newest; read state is per person (00464). Adds
GET /api/chat/whats-new, POST /api/chat/whats-new/read and the
get_whats_new read, whose step says "N updates for your plan". Behind
CHAT_AGENTIC.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Six benefit-only entries for what shipped in the last two weeks: Chat, Agent Center, Chat focus, Why did it move, Daily suggestions and Action Center tasks in Chat, each checked against the merged pull requests. All are approved: false; nothing shows until one is approved and entries.json is refreshed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Approved by the owner (Cihan) on 2026-11-02 as written: entries.json now holds them, newest first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Its limit goes through the scope's ROW_LIMITS like every read that takes one: 3 by default and at most, the input accepting more and the server cutting it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
get_whats_new took older_than (the oldest shown update's day) and kept only updates published before it. Updates sharing that day could never be reached, and since unread ones rank before read ones the oldest shown update could be an unread one, cutting off newer read updates. older_updates was also computed over every entry the plan shows, so it never went false. The tool now takes shown, the features of the updates already shown; pickWhatsNew leaves those out (by feature or slug) and keeps the same ranking, so each "Show older updates" reads the next ones until none are left. more is now whether the filtered, ranked list has entries past the ones taken. A test keeps entry features unique, since paging relies on them.
…g live (W4-22b) Eight benefit-only entries, approved: false for the owner: scheduled jobs, follow-up checks, skills, memory, agents that publish on their own, Take down, Connections and the time zone in Settings › Account. Each is checked against its pull request's code and Help article. Dated 2026-11-03 for now; this merges only after those pull requests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Approved by the owner (Cihan) on 2026-11-03 as written: entries.json now holds all fourteen entries, newest first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ch is on Entries can now name a switch they need beyond their plan (requires: auto_go_live). readWhatsNew checks it against autoGoLiveEnabled for the workspace, so orgs without CHAT_AUTO_GO_LIVE don't see an entry pointing at a Settings switch they can't find.
gkhngyk
previously approved these changes
Nov 3, 2026
8 of 13 tasks
…new-entries # Conflicts: # web/messages/en.json # web/src/lib/chat/engine.ts # web/src/lib/chat/registry/tools.test.ts # web/src/lib/chat/whats-new/entries.json # web/src/lib/chat/whats-new/run.test.ts # web/src/lib/chat/whats-new/run.ts
gkhngyk
approved these changes
Nov 4, 2026
8 of 13 tasks
gkhngyk
pushed a commit
that referenced
this pull request
Nov 4, 2026
…2118) #2043 merged the second batch of What's new entries before the pull requests they describe. Three of them name things main doesn't have yet, so they would show once New Chat goes live: - Follow-up checks: no follow-up check tool, Set check card or result notice on main (#2029). - Scheduled jobs: the schedule card and Inbox delivery are on main, but runs aren't e-mailed (#2028) and there is no Scheduled page in the Chat menu (#2018). - Your time zone: Settings › Account has no time zone yet (#2034, migration 00468). Each keeps its approved text and gets published: 2099-12-31, so pickWhatsNew leaves it out until its pull request sets its merge day. entries.json regenerated. Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9 Co-authored-by: Claude <[email protected]>
8 of 13 tasks
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.
Summary
What's new's second batch, content only (Chat Wave 4, W4-22b; CHAT-11 §A). Stacked on #2025. Eight short, benefit-only entries for Chat Wave 3 and agents going live, written to the same rules as the first batch. Entries approved by the owner (Cihan) on 2026-11-03. They are
approved: true, andentries.jsonholds them with the first batch's six.This PR is not merged before the pull requests it describes. Each entry is checked against its pull request's code and Help article:
show_upgrade: other plans see "On Growth and Enterprise."); the rest are for every plan.publishedis 2026-11-03 for every entry for now; set each to its feature's merge day before merging.route:one line each).To change one later: edit the file, then run
yarn test -u src/lib/chat/whats-newinweb/and commitentries.json.Related issue
None. Chat waves plan, Wave 4 (W4-22, second batch).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
cd web && yarn vitest run src/lib/chat/whats-new: every entry passes the rules (lines, words, prices, plan names, routes), andentries.jsonmatches the fourteen approved entries.No migration. No new environment variable.
Checklist
yarn lintpassesyarn typecheckpassesyarn format:checkpasseshelp/(or no user-visible change)CI passed on this branch (ce73e10), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/41562105589): schema is up to date; web
format:check, lint, typecheck, all tests andyarn buildpass; server lint,format:checkand all tests pass.🤖 Generated with Claude Code