Skip to content

Feat/ai summary generation#30

Open
aprabou wants to merge 2 commits intolucadealfaro:mainfrom
aprabou:feat/ai-summary-generation
Open

Feat/ai summary generation#30
aprabou wants to merge 2 commits intolucadealfaro:mainfrom
aprabou:feat/ai-summary-generation

Conversation

@aprabou
Copy link
Copy Markdown
Contributor

@aprabou aprabou commented Mar 12, 2026

feat: add AI-generated notebook summary button and first-cell insertion

  • Add Summary action to the navbar and wire the UI event flow.
  • Implement the frontend handler to call the summary API, refresh the notebook, and focus the first cell.
  • Add the /generate_notebook_summary backend endpoint with existing AI config and billing error handling.
  • Add notebook-level generate_notebook_summary() logic to:
    • generate a markdown summary from notebook context
    • insert a new first markdown cell when missing
    • update an existing auto-generated summary when present
    • tag the summary cell with metadata.plainbook_summary = true
  • Add provider support for notebook summaries in Gemini and Claude integrations.
  • Add shared summary system instructions and a markdown-fence stripping helper.
  • Register the new summarize_notebook provider hook in the AI provider registry.

Reference: Issue #21

aprabou added 2 commits March 11, 2026 14:10
- Add Summary action to navbar and wire UI event flow
- Implement frontend handler to call summary API, refresh notebook, and focus first cell
- Add /generate_notebook_summary backend endpoint with existing AI config and billing error handling
- Add notebook-level generate_notebook_summary() logic to:
- generate markdown summary from notebook context
- insert a new first markdown cell when missing
- update existing auto-generated summary when present
- tag summary cell with metadata.plainbook_summary = true
- Add provider support for notebook summaries in Gemini and Claude integrations
- Add shared summary system instructions and markdown-fence stripping helper
- Register new summarize_notebook provider hook in AI provider registry
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