Skip to content

feat: update after-edit checks, native loop, own views and runner settings - #198

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

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

Conversation

@SummonShenron

Copy link
Copy Markdown
Owner

feat: update after-edit checks, native loop, own views and runner settings

Opened with Sonic Assistant.

…tings

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

vercel Bot commented Nov 28, 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 28, 2026 7:42pm UTC

@SummonShenron

Copy link
Copy Markdown
Owner Author

Sonic Assistant PR Overview

Summary

This PR updates the "after-edit check" system to allow automatic execution of user-defined checks following an Apply action. It also refines how the assistant interprets message intent and manages "own views" by removing the storage of user message text to improve privacy.

What changed

  • After-Edit Checks:
    • backend/utils/after_edit_check.py: Implemented logic to automatically run checks (pytest, tsc, npm test) after an edit. Added held_back to prevent automatic execution when the assistant has read third-party text or when the change involves sensitive files like package.json.
    • backend/services/agent_workflow.py: Integrated held_back checks to notify the model when an automatic run is skipped.
    • backend/utils/loop_rhythm.py & backend/utils/combo.py: Updated loop tracking to account for checks that run automatically during an Apply.
  • Message Intent & Privacy:
    • backend/utils/message_doing.py: Added heavy intensity detection to prevent the assistant from misinterpreting messages involving grief, fear, or self-harm.
    • backend/utils/own_views.py: Modified entry_for and note to stop storing user message text, relying solely on Sonic's own reply sentences to recall views.
    • app.py: Updated _read_progress_notes to incorporate message intensity into intent classification and updated own_views.note calls.
  • Logic Refinements:
    • backend/utils/agent_utils.py: Added holds_off to detect when a user message requests a pause in coding work.
    • backend/utils/claim_check.py: Updated evidence to correctly categorize checks by name.

Where to look

  • backend/utils/after_edit_check.py: The core logic for selecting and validating checks.
  • backend/utils/message_doing.py: The new heavy intensity regex and logic for identifying message intent.
  • backend/utils/own_views.py: The privacy-focused change to stop storing user-provided text.

Risks and gaps

  • The own_views change ignores the words field in existing documents, which may affect recall for views stored prior to this update.
  • The held_back logic relies on read_others_text flags; if these flags are not correctly propagated, automatic checks might run when they should be held for user confirmation.

Not fully covered by this overview (diff cut short: backend/utils/after_edit_check.py, backend/utils/message_doing.py, backend/components/sonic_changelog.py; not read: backend/utils/self_counters.py, local/src/components/RunnerSettingsCard.tsx, local/src/components/helpTips.ts, backend/tests/test_after_edit_check.py, backend/tests/test_own_voice.py, backend/tests/test_edit_corrections.py, backend/tests/test_native_loop.py, docs/review-fable-opus-2026-11-27.md).

Updated for commit c3d47ec

@SummonShenron
SummonShenron merged commit 9958dc7 into main Nov 28, 2026
2 of 4 checks passed

This branch was successfully deployed

1 active deployment
Preview — c3d47ec2 Deployed Nov 28, 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