Repository navigation
feat(handoff): publish_handoff mirrors the report into a PostHog notebook - #1437
Merged
Merged
Conversation
…book The wizard creates the notebook through the notebooks API with the run's login, so it no longer depends on the flag-gated MCP notebook tools. On by default; create_notebook: false opts out. A notebook failure never fails the tool. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Test against a Context Mill branch:
Add Results will be posted here when complete. |
edwinyjlim
approved these changes
Oct 12, 2026
- Notebook mirroring is a per-program setting (integration v1/v2, metrics, integration agent-skills) instead of a model-facing create_notebook arg. - One 8 s deadline over the whole sync, one retry on network errors and 5xx. - A lost create response is recovered by looking the notebook up by short_id. - A failed update says the notebook was not updated and links the earlier one. - The rotate-on-401 retry is one shared helper used at all three call sites. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
The
reporttask mirrors the report into a notebook through the MCP'snotebooks-create-markdown, which exists only whenrevamped-py-notebooksis on (about 20% of orgs), so the step fails and turns otherwise finished runs into errors (48 of 77 runs with a failedreportin 7 days).Changes
publish_handoffcreates the notebook through the notebooks API with the run's login, one per program per run (a retry updates it), and emits the link to the outro.wizard skill integration-*. It is a per-program setting, not a tool argument.short_id. A skip says why in the result (Notebook not created: …orNotebook not updated: … earlier report: <url>); the tool never fails for it.@shared/oauth-session, used here and by the task-stream sync and the GitHub check, with each site's behavior unchanged.handoff publishedrecordsnotebook_requested,notebook_outcomeandnotebook_skip_reason.Test plan
vitest run(full)mcp-screen-outcomeflakes at base too, passes alonepnpm typecheck, eslint, prettierpublish_handoff; link in outro; 0 MCP notebook callsRelease order
Release PostHog/context-mill#423 first. It is safe alone, because older wizards get no notebook note from
publish_handoffand take the MCP fallback. #1437 must not reach users before #423 is served, or orgs with the flag on get two notebooks per run.Sources
ph-markdown-notebooknode as-is, no flag check:products/notebooks/backend/presentation/views/notebook.py(create)services/mcp/tests/unit/tool-filtering.test.ts🤖 Generated with Claude Code