Skip to content

fixing bugs in ui#22

Merged
mukeshkumarcharak merged 2 commits into
mainfrom
claude/jolly-carson-j2c8zt
Jun 8, 2026
Merged

fixing bugs in ui#22
mukeshkumarcharak merged 2 commits into
mainfrom
claude/jolly-carson-j2c8zt

Conversation

@mukeshkumarcharak

Copy link
Copy Markdown
Contributor

No description provided.

claude added 2 commits June 8, 2026 20:23
Comment out the install_engineer_deps call in the main setup flow while
the engineer agent is paused. The function and its venv helpers remain
defined, so resuming is a one-line uncomment.

https://claude.ai/code/session_01THtMvNNx21QhXYi6PBRFBz
Two unrelated bugs surfaced in the GUI:

1. False "API not reachable":
   - The GUI's connectivity probe hit GET /api/v1/health, which shells
     out to `orchestrator.sh health all` and sweeps every tool — far
     slower than the 5s fetch timeout, so the UI showed Offline.
   - The server used single-threaded HTTPServer, so that slow sweep also
     blocked page loads and message requests.
   Fixes:
   - Add a lightweight GET /api/v1/ping that returns instantly without
     touching the orchestrator (added to PUBLIC_PATHS, used by the GUI).
   - Switch to ThreadingHTTPServer so no single request blocks others.

2. Raw JSON in chat:
   - /agent/ask is a tool ROUTER; conversational input like "hi" matches
     no tool and returned {matched_tool:null, error:...}, which the GUI
     dumped verbatim.
   Fix:
   - Add formatAgentReply() to render matched-tool and no-match responses
     as human-readable text, with pre-wrap so multi-line replies display.

https://claude.ai/code/session_01THtMvNNx21QhXYi6PBRFBz
@mukeshkumarcharak mukeshkumarcharak merged commit 14e97ba into main Jun 8, 2026
0 of 6 checks passed
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