Claude/add wallet transfers 74 phc#588
Merged
Merged
Conversation
The console was broken: posting to /stream with @micro prefix, then polling for agent events — race conditions, wrong responses, overlay state getting lost. All gone. Now the console is just an input that calls POST /agent/run directly and displays the response inline. Same endpoint the MCP agent tool uses. Same endpoint the chat page uses. One code path. - Removed the full-screen overlay entirely - Removed stream posting / polling from the console - Input stays at the top of the home page after the date - Response appears in a rounded box below the input - Each new question replaces the previous answer - Markdown rendered in the response - No state management, no overlay, no polling races
Enter key wasn't sending because the inline onkeydown dispatched
a new Event('submit') which didn't trigger the JS listener (it
only fires on trusted events in some browsers). Moved both the
auto-grow and enter-to-submit handlers into the JS block where
they call form.dispatchEvent properly.
Fixed width:100%%%% → 100%% and top:50%%%% → 50%% (the Python
script double-escaped the percent signs).
Kept /agent/run as the console endpoint — /agent POST uses SSE
streaming which doesn't return JSON. /agent/run returns plain
JSON which is what the console needs.
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.
No description provided.