Skip to content

Conversation

@ngafar
Copy link
Collaborator

@ngafar ngafar commented Jan 14, 2026

  • Ask user tool is called more often, and has interactive choices
  • Chart Wizard
  • Chart Wizard converter
  • Scratchpad tool

Note

Introduces a new Chart Wizard and expands agent capabilities with scratchpad and user-question tools.

  • Chart Wizard:

    • Backend: POST /mito-ai/chart-wizard with LLM prompt (chart_conversion_prompt) to convert matplotlib code; server wiring in __init__.py.
    • Frontend: New plugin adds a "Chart Wizard" button on matplotlib outputs and a panel to edit parsed # === CHART CONFIG === variables with debounced notebook updates; supports on-demand conversion via API.
    • Shared: New CHART_CONFIG_RULES used in prompts; REST client and styles added.
  • Agent enhancements:

    • New tools: scratchpad (executes code silently and returns results) and ask_user_question (multiple-choice or free-form).
    • Backend: Message/model updates, new agent:scratchpad-result handler and prompt, provider fast/slow model routing.
    • Execution: Secure scratchpad execution utility, integrated into agent loop; history groups error-fixup chains and associates scratchpad results.
    • UI: Chat message renders Scratchpad and Ask-User-Question components; editing respects agent mode.
    • Tests: Updated/added unit and UI tests for new flows and messaging.
  • Misc: Minor styles/commands, variable inspector hides scratch_ vars, expanded .gitignore, and a verification doc.

Written by Cursor Bugbot for commit 9da5ff7. This will update automatically on new commits. Configure here.

ngafar and others added 27 commits January 13, 2026 10:38
Fix: Make active cell more visible in Mito theme
Add support for showing the execution output of scratchpad tool calls
in the chat interface. The result is stored with the user message and
displayed below the code when the scratchpad is expanded.
- Move scratchpad result lookup from render loop to processChatHistoryForErrorGrouping
- Add tests for scratchpad result association logic
While JavaScript returns undefined for out-of-bounds array access
and optional chaining handles it safely, adding an explicit bounds
check improves code clarity and consistency with similar patterns
elsewhere in the file.
Show "Scratchpad results not available for display" message in the
scratchpad result section when results are unavailable, instead of
showing nothing.
Display scratchpad execution results in chat UI
@vercel
Copy link

vercel bot commented Jan 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
monorepo Ready Ready Preview, Comment Jan 14, 2026 6:04pm

@ngafar ngafar merged commit 3aa79da into main Jan 14, 2026
64 of 70 checks passed
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.

5 participants