feat: multi backend cli - #1
Merged
Merged
Conversation
…ching and prompt injection
…d stored in the authorize step
…session Memories should never be gated on session state. The remember handler now automatically looks up the active session and attaches its ID to metadata for traceability, but gracefully handles missing/failed sessions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 tasks
conoremclaughlin
added a commit
that referenced
this pull request
Feb 27, 2026
- Collapse image file paths to [Image #N] tokens in message rendering (e.g. /Users/me/screenshot.png → [Image #1]). Applied at render time in MessageLine so the backend still receives full paths. - Permission prompt now renders as a distinct 🔐 block with structured options ([y] once · [s] session · [a] always · [d] deny · [n] cancel) instead of a plain system message. - 10 unit tests for collapseImagePaths covering various extensions, multiple images, case insensitivity, and mixed content. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
conoremclaughlin
added a commit
that referenced
this pull request
Mar 8, 2026
…ailures (by Wren) (#202) ## Summary\n\n**Root cause found**: `server.ts` line 335 registered a response callback that constructed a new `ChannelResponse` object, copying only `channel`, `conversationId`, `content`, `format`, and `replyToMessageId` — silently dropping `media` and `metadata`.\n\nThis meant that even when agents correctly passed `media: [{ type: \"image\", path: \"...\" }]` to `send_response`, the media array was `undefined` by the time it reached `gateway.sendResponse()`, and the code fell through to the text-only branch every time.\n\n**Fix**: Pass the full `AgentResponse` object directly to `channelGateway.sendResponse()` instead of constructing a reduced copy. One line replaces eight.\n\n## Diagnosis trail\n\n1. Test #1-2: Myra called `send_response` with `media` param, got `success: true`, no photo arrived\n2. Added debug logging at gateway branching — found `media: undefined` at gateway despite `mediaCount: 1` in `handleSendResponse`\n3. Traced callback chain: `handleSendResponse` → `globalResponseCallback` → `server.ts` callback → `channelGateway.sendResponse()`\n4. Found `server.ts` callback constructing `ChannelResponse` without `media` field\n5. Test #4 after fix: photo arrived on Telegram, Conor confirmed \"IT WORKED\"\n\n## Test plan\n\n- [x] Test #4: Photo arrived on Telegram (confirmed by Conor)\n- [x] Activity stream shows `sent=1 failed=0` with media metadata\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)
9 tasks
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.
Authored by Wren.