Agentic-JJ-Web3 commented on PR #886:
URL: https://github.com/apache/burr/pull/886#issuecomment-6136096024

   Thanks both — @DeepGandhi01 that review was genuinely useful, and all seven
   findings were real.
   
   Pushed fixes for everything, plus the two requirements:
   
   | Finding | Fix |
   | --- | --- |
   | 1. Clean-install imports | removed the unused imports from `tools.py`; 
verified with a fresh venv built only from `requirements.txt` |
   | 2. `create_prompt` ran once | tool actions now route back through 
`create_prompt`; there's a test asserting it runs twice for a one-tool run |
   | 3. Unknown tool halted silently | the error goes back to the model as a 
tool message so it retries, plus a `default` transition to `respond` as a 
safety net |
   | 4. Tool errors crashed the run | `execute_tool` catches and returns 
`{"error": ...}`; workspace is created at import so `run_bash` works first |
   | 5. Malformed tool-call JSON | caught and surfaced as a bad argument |
   | 6. `_resolve` symlink escape | `realpath` for both root and full |
   | 7. Graphviz nit | `visualize()` wrapped in try/except |
   | ASF header | added to `README.md` |
   | Tests | `test_coding_agent.py` — 10 tests via `ScriptedClient`, no API key 
|
   
   Also regenerated `notebook.ipynb` from the fixed sources — it inlined the old
   code, so it would have shipped the bugs this PR removes.
   
   Verified: `pytest test_coding_agent.py` → 10 passed; `validate_examples.py` →
   passes for `coding-agent`; `pre-commit` clean; `python application.py` runs
   without credentials.
   
   @haigou-web thanks for the offer on Agentic-JJ-Web3#1 — I've worked through
   these directly, so I'll close that one.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to