mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4448] [CLOSED] [Other] An edit copies the exact text instead of retyping it, and says so when it does not match #5054
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5054
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4448
Author: @xvcezrqpbxtpzblrt
Created: 10/28/2026
Status: ❌ Closed
Base:
main← Head:agent/edit-exact-027📝 Commits (2)
ed85bf8[Other] A tool call written as text is shown as not runef8dd38[Other] An edit copies the exact text instead of retyping it, and says so when it does not match📊 Changes
18 files changed (+241 additions, -16 deletions)
View changed files
📝
apps/host/server/agent/agent-bridge.mjs(+2 -0)📝
apps/host/server/agent/events.mjs(+128 -5)📝
apps/host/server/agent/preset.mjs(+2 -1)📝
apps/host/server/agent/turn-guard.mjs(+3 -0)📝
apps/host/src/locales/de.json(+5 -1)📝
apps/host/src/locales/en.json(+5 -1)📝
apps/host/src/locales/es.json(+5 -1)📝
apps/host/src/locales/fr.json(+5 -1)📝
apps/host/src/locales/ja.json(+5 -1)📝
apps/host/src/locales/ko.json(+5 -1)📝
apps/host/src/locales/pt.json(+5 -1)📝
apps/host/src/locales/ru.json(+5 -1)📝
apps/host/src/locales/zh.json(+5 -1)📝
apps/host/tests/agent-events.test.mjs(+36 -0)📝
apps/host/tests/agent-tools.test.mjs(+1 -0)📝
apps/host/tests/agent-turn-guard.test.mjs(+14 -0)📝
apps/host/tests/functional-fixes.test.mjs(+5 -1)📝
apps/host/tests/helpers/scripted-worker.mjs(+5 -0)📄 Description
## Problem
In one real session (103 turns, 3,868 steps) the agent made 1,446 edits and 87 of them failed (6%). The breakdown of the errors in that session:
FS_EDIT_NOT_FOUNDFS_STALE_VERSIONFS_NOT_OBSERVEDFS_SANDBOX_DENIEDSo drive access was not the problem (2 refusals, not 120), and no run had more than three failures in a row: these were wasted attempts spread through the work, not a loop.
Two things were missing:
old_string was not found in "D:\…", becauseplainToolErrorhad no sentence for that error.Result
Validation
node --test tests/agent-tools.test.mjs tests/functional-fixes.test.mjs tests/agent-events.test.mjs→ 77 tests, 64 pass, 13 skipped (the Harness cases), 0 fail; the new assertion coversold_string was not found.Limits
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.