Skip to content

feat: add after-edit check, multi-read, edit corrections and thinking logo update - #195

Merged
SummonShenron merged 1 commit into
mainfrom
sonic/working-changes-2026-11-26-all
Nov 27, 2026
Merged

SummonShenron merged 1 commit into
mainfrom
sonic/working-changes-2026-11-26-all

Conversation

@SummonShenron

Copy link
Copy Markdown
Owner

Adds an after-edit check and multi-file read, runner and handback changes, and the thinking logo motion update, with their tests. Title and message are written from file names and status, not a line-by-line read.

Opened with Sonic Assistant.

… logo update

Adds an after-edit check and multi-file read, runner and handback changes, and the thinking logo motion update, with their tests. Title and message are written from file names and status, not a line-by-line read.

Co-authored-by: Sonic Assistant <sonic-assistant@users.noreply.github.com>
@vercel

vercel Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
saapp Ready Ready Preview Nov 27, 2026 10:05pm UTC

@SummonShenron

Copy link
Copy Markdown
Owner Author

Sonic Assistant PR Overview

Summary

This PR introduces an automated after-edit check system and a multi-file reading utility to improve coding efficiency. It also updates the "thinking" logo animation to include a new double helix motion.

What changed

  • After-Edit Checks: Added backend/utils/after_edit_check.py to automatically identify and run relevant tests (pytest, tsc, or npm) following a code application. Updated backend/services/native_loop.py and backend/services/agent_workflow.py to integrate these checks into the agent's workflow.
  • Multi-File Reading: Added backend/utils/multi_read.py to allow the model to request multiple line ranges across one or more files in a single read_repo_file call. Updated backend/services/agent_workflow.py to support the ranges argument in _read_file.
  • Thinking Logo: Added local/src/components/HelixLogo.tsx to define the new double helix animation. Updated local/src/components/thinkingLogoMotion.ts to incorporate the helix into the ten-stage animation cycle.

Where to look

  • backend/utils/multi_read.py: Review the parse and render functions to understand how line ranges are merged and constrained by MAX_RANGES and MAX_CHARS.
  • backend/utils/after_edit_check.py: Examine the pick function to see how the system selects the appropriate test suite based on the file types changed.
  • local/src/components/thinkingLogoMotion.ts: Check the updated stage constants and the new HELIX_DOT_FRACS to see how the animation timing and geometry were adjusted.

Risks and gaps

  • The multi_read utility introduces new limits (MAX_RANGES, MAX_TOTAL_LINES, MAX_CHARS) that, if misconfigured, could lead to truncated file reads or excessive token usage.
  • The after_edit_check logic relies on specific naming conventions (e.g., test_*.py) to associate tests with changed modules; changes that do not follow these patterns may fail to trigger an automatic check.

Not fully covered by this overview (diff cut short: backend/utils/multi_read.py, local/src/components/thinkingLogoMotion.ts, backend/services/native_loop.py, backend/services/agent_workflow.py, backend/utils/agent_utils.py; not read: backend/services/steering.py, backend/utils/code_plan.py, backend/utils/runner_jobs.py, backend/components/sonic_changelog.py, backend/utils/handback_check.py, backend/utils/claim_check.py, backend/utils/reading_waste.py, backend/services/choice_cards.py, ...).

Updated for commit 9803c7c

@SummonShenron
SummonShenron merged commit b7b1268 into main Nov 27, 2026
2 of 4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 9803c7c1 Deployed Nov 27, 2026 by vercel[bot]
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.

2 participants