Repository navigation
Add backend Smart Approval, context diagnostics and confined tool orchestration - #323
Merged
Merged
Conversation
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.
Summary
Move Smart Approval decisions and review history into the backend, then reduce repeated model context with per-turn memory snapshots and bounded tool discovery. Add a
mendcode contextreport that distinguishes token estimates from provider-reported cache usage, and an opt-in confined Code Mode that composes existing tools while keeping intermediate results out of model input.This beta candidate also adds discoverable macOS screenshot capture with real image attachments and a narrowly targeted navigation-key tool. The initial two commits separate Smart Approval primitives/review controls from context/tool integration. The branch includes the latest
devat4d80b13cand does not replace or omit the preceding Smart Approval work.Release dependency correction
Pin Drizzle ORM and Kit to
1.0.0-beta.20to fix GHSA-gpj5-g38j-94v9. The old pinned dialect failed an embedded-quote reproduction; the corrected dependency passes direct escaping and in-memory SQL-shaped alias regression tests. Typecheck and 24 storage/session tests passed with the new dependencies. No schema migration was generated. These tests and the new context/Smart Approval suites are included in the runtime CI gate.Type
Verification
Completed local checks (counts overlap where a focused test was rerun):
context --helppassed. The compiled macOS ARM64 executable reports0.1.44-beta.3and completed Code Mode with a nested file read through an isolated backend/local HTTP provider; the expected result reached the CLI. This does not establish other-platform or paid-provider behavior.screencaptureplus resize succeeded on macOS and the resulting PNG was visually decoded locally./global/release-channelavailability and/usage.daysschema drift.Representative commands, run from the OpenCode package with the existing isolated test preload:
One attempted check was rejected before execution by the test database-isolation guard because the shell PID differed from Bun's preload PID. It was rerun successfully using a relative database name under the preload's isolated data directory; no real database was used.
Screenshots or Recordings
Native capture was inspected locally. No personal desktop image is published. Smart Approval TUI visual/PTY acceptance and interactive keyboard control remain unverified.
Experimental beta limits
This candidate targets
0.1.44-beta.3fromdev, not promotion of these features to the stable channel. Code Mode remains disabled by default. The limits below remain explicit in the release notes./responses/compactreplacement windows. The portable summarizer remains unchanged. Durable native replay/model compatibility and interruption fixtures are still required.Checklist