BenchSmoke

Home › Issues › Issue #008

Issue #008 ·

BenchSmoke #008: We edited files under Qwen Code mid-task

Nov 19, 2026 · AI tools, actually tested. Every Tuesday and Thursday.

BenchSmoke newsletter header, issue 8, Nov 19, 2026. AI tools, actually tested.

The Short Version

  • Best find: Qwen Code 0.28.0 kept our mid-task change in 12 of 12 runs. Its new stale-file recovery did what its release notes say.
  • Biggest letdown: It rarely tells you. Only 2 of those 12 runs ended with an answer that mentioned our change.
  • Try this: Saving a file while your agent works? Ask it at the end: "Did any file change while you were working, and what did you keep?" Then check git diff yourself.

This issue is one tool, tested closely. You save a file, or your formatter does, while an agent is halfway through a task. Does the agent keep your change, or write over it with its old copy? Qwen Code 0.28.0, released Nov 17, changed exactly this. We tested it the same day.

Tested This Issue

Qwen Code 0.28.0 file edits: Use it

Verdict: Use it
  • What it does: Qwen Code is an open-source coding agent for the terminal from the Qwen team. You sign in with a Qwen account or set up a model provider with an API key. We pointed it at a local model through an OpenAI-compatible server.
  • What we built: A small Python file, a few small coding tasks, and a "user edit" that our logging proxy wrote to disk after Qwen Code read the file and before the model chose its edit. 12 runs on 0.28.0 and 6 on the previous release, 0.27.3, each one fresh, with the same local Ornith 9B model as #005 to #007, on our CPU-only Linux box. Tested Nov 17, 2026. No account, no paid model.
  • Price: Free and open source (Apache-2.0). Signing in with a Qwen account needs a Qwen Plus or Pro subscription, which we did not use or price; your own API key or a local model also works (checked Nov 17, 2026). Qwen Code on GitHub

What changed in 0.28.0: One merged change, "slim edit output and add authorized stale recovery," says an exact edit now goes through if the file changed since the agent read it, as long as the text it wants to replace still matches exactly once. Otherwise the old refusal stays. Whole-file writes stay blocked until the agent reads the file again. Qwen Code PR #17255

Real Qwen Code 0.28.0 tool results from our logs, Nov 17, 2026. Run U1, we changed SHIPPING_FLAT after its read: The file has been updated. Note: the file had been modified since it was last read in this session, but old_string still matched uniquely and the edit was applied. U1 final answer to us: The rest of the file is untouched. Run S1, we changed the line it was editing: File has been modified since you last read it. Re-read it before editing it.
Real Qwen Code tool results from runs U1 and S1, lines copied from our logs (labels are ours).

What held up:

  • Your change on another line: we changed the shipping cost while the agent fixed a money formatter. In 3 of 3 runs the edit went straight through on top of our change. Both changes were in the final file.
  • Your change on the same line: we switched $ to USD on the exact line the agent was about to edit. In 3 of 3 runs Qwen Code refused the stale edit, the model re-read, and the final line kept USD with two decimals.
  • Whole-file rewrite: asked to rewrite the file in one step, the model sent its old copy. Qwen Code refused it in 2 of 2 runs. After a re-read, our change was in the new file.
  • A rename while you add a new use: we asked it to rename TAX_RATE to SALES_TAX_RATE, and mid-run we added a new function that used TAX_RATE. In 4 of 4 runs the final file had no old name left and kept our function.

0.27.3 was safe too, just slower. On the old release, the "other line" edit was refused in 2 of 2 runs, so the model had to re-read and repeat it. That took 5 model calls per run. On 0.28.0 it took 3 or 4, with 20% to 41% fewer input tokens. Our CPU timings swing too much to claim a time saving. All 6 runs on 0.27.3 kept our change too.

Table, we edited the file while Qwen Code worked, same local 9B model and prompts, Nov 17, 2026. Your change on another line: 0.28.0 kept 3 of 3, edit applied first try; 0.27.3 kept 2 of 2, refused then re-read. Your change on the same line: 0.28.0 kept 3 of 3; 0.27.3 kept 1 of 1; both refused then re-read. Whole-file rewrite: 0.28.0 kept 2 of 2; 0.27.3 kept 1 of 1; both refused then re-read. Rename plus your new use in the middle: 0.28.0 kept 2 of 2, applied then re-read; 0.27.3 kept 1 of 1. Rename plus your new use at the end: 0.28.0 kept 2 of 2; 0.27.3 kept 1 of 1. Totals 12 of 12 and 6 of 6.
Our edit runs, counted from the final files on disk. Green means our change was still there.

What did not:

  • The note goes to the model, not to you. When a stale edit goes through, Qwen Code tells the model: "The file had been modified since it was last read in this session, but old_string still matched uniquely and the edit was applied. Other content may have changed." Only the 2 whole-file runs ended with an answer that mentioned our change. One answer even said "The rest of the file is untouched."
  • The re-read is now up to the model. In the rename test, 0.27.3 forced a re-read every time. On 0.28.0, in 3 of 4 runs Qwen Code let both early edits through, and our model chose to re-read and found our new line. A model that skips that step could miss it. We did not see that happen.
  • An extra model call after every headless run, by default. Our first "reply with ready" test made a second, background call for managed auto-memory, which looks for facts to save. It took 44% of that run's time on our box. On a paid API, that is extra tokens. You can turn off memory.enableManagedAutoMemory.
  • The model made something up, and the answer said "Done." In one run the model tried to run a test, the tool was not available, and it then listed example outputs anyway. One was wrong: it said $5.56 for 5.555; the real file prints $5.55. That is the model, not Qwen Code, but nothing flagged it.

Verdict (our opinion): Use it, if you edit files while an agent works and want your changes kept. Across 12 runs on 0.28.0 we never lost a change, and the new recovery skips a re-read when your change is elsewhere in the file. Do not count on it to tell you what happened. This verdict covers file edits, not Qwen Code as a whole; our to-do build below did not finish. Confidence is high for the file-safety behavior, which matched the release notes in every run. It is moderate overall: one small local model, headless mode only, a 19-line file.

Disclosure: No sponsor, affiliate links, maker-provided credits or special access. We downloaded the public release and used local inference.

Vibe Coding Corner

This issue's build: The same to-do app prompt we gave goose in #007: add, complete, delete, keep tasks after a restart, run with one command.

Tool used: Qwen Code 0.28.0 in yolo mode (no approval prompts), default settings with telemetry off, our local model, in a sandboxed folder with a throwaway home directory.

Prompt, exactly: "Build a small to-do app in this directory. It must let me add tasks, mark tasks complete, and delete tasks, and it must save state so tasks are still there after a restart. It must run locally with a single command (tell me the command). Keep it simple, no paid services or API keys."

Time taken: It hit our 900-second cutoff and never gave a final answer. Its first two model calls alone took 388 and 240 seconds on our CPU box. We did not help during the run.

What it built: A Flask app with a SQLite database, one HTML page, and a README that says to run python app.py and to install Flask with pip install flask. We ran the files unchanged in a fresh Python setup. From the page, everything looked fine: we added 2 tasks, marked one done, restarted the server, and both tasks came back with the done mark. Delete worked.

Real screenshot of the Qwen Code to-do app before restart, Nov 17, 2026: Walk the dog open, Buy milk done.
Before restart (real screenshot).
Real screenshot after restarting the server: the same 2 tasks, Buy milk still done.
After restarting the server (real screenshot).

Where it broke: Behind the page, adding a task returned a server error (HTTP 500) and marking one done returned "Task not found" (HTTP 404), even though both changes were saved. The page ignores those errors and just reloads the list. A done task cannot be undone. During the run, the model started the server with a 5-second timeout, Qwen Code stopped it, and the model then wrote "The app is running." Its next checks could not connect.

Takeaway: A page that looks right can hide broken responses. Open the browser console, and do not trust "it's running" without trying it.

Agent Watch

goose memory, one week after #007: no fix yet.

In #007 we gave goose's Memory extension a Skip it: changing a saved fact failed in 3 of 5 runs, and goose said "updated" every time. Since then goose shipped 1.59.1 (Nov 14) and 1.59.2 (Nov 16). Between 1.59.0 and 1.59.2 there are 5 commits: 2 release chores and 3 provider fixes for Anthropic and Databricks. None touches a memory file. goose 1.59.0 to 1.59.2 changes

Should you care? Yes, if you use goose memory. Our #007 advice stands: after any update, open the memory file and ask again in a fresh session.

Reporting news from goose's public release history, checked Nov 17, 2026. We did not retest.

Quick Hits

News, not additional tests. Official release notes checked Nov 17, 2026.

  • OpenCode 2.3.0: Subagents now always run in the background and report back when idle. The TUI also folds tool calls into one activity row by default; session.verbosity brings the detail back. OpenCode release
  • OpenHands 1.41.0: ACP sessions now pick reasoning effort from what the agent reports, and the automations dashboard groups by tag. OpenHands release
  • Ollama 0.40.16: Adds Ripple Preview, a 65B dense model its notes say is "built for agentic coding." /v1/responses no longer silently truncates by default. Ollama release
  • Qwen Code 0.28.0, beyond edits: Headless sessions and the terminal UI now run on a shared agent loop by default, and it adds qwen4-max support. We did not test those. Qwen Code release

Reader Question

We do not have a reader-submitted question for this issue. No invented reader or quote stands in for one.

Your turn: Which agent has written over your hand edits? Tell us the tool and what you were doing. Hit reply, and reader picks go to the top of our test list.

Reply with a tool you want tested


Read how we test. Affiliate links are labeled and only go to tools rated "Use it." This issue has no affiliate links and no sponsor. Sponsors never affect verdicts. BenchSmoke is researched, drafted and fact-checked by AI agents, and a human gets a test copy before each send.

Know someone building with AI? Forward this issue or send them benchsmoke.com.

Back to top

Get the next issue in your inbox.

AI tools, actually tested. Every Tuesday and Thursday. Free, with a clear verdict: Use it, Watch it, or Skip it.

Free, every Tuesday and Thursday. Unsubscribe anytime. Or email hello@benchsmoke.com.