Repository navigation
surface attachments in both poller paths (lost-screenshot lesson) #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,7 +54,13 @@ export const groupmindAdapter = { | |
|
|
||
| normalize(msg, config) { | ||
| const sender = msg.from || msg.sender || '?'; | ||
| const body = (msg.body || '').slice(0, 500); | ||
| let body = (msg.body || '').slice(0, 500); | ||
| // Surface every attachment kind. 2026-07-19: petrus posted a screenshot | ||
| // that never reached the agent (bodies-only extraction) and got asked to | ||
| // re-post it - an attachment must never be invisible. | ||
| if (msg.image_url) body += ` [IMAGE ATTACHED: ${msg.image_url}]`; | ||
| if (msg.audio_url) body += ` [AUDIO ATTACHED: ${msg.audio_url}]`; | ||
| if (msg.file_url) body += ` [FILE ATTACHED: ${msg.file_name || msg.file_url}]`; | ||
|
Comment on lines
+61
to
+63
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For any message whose caption is at least 200 characters, these markers are appended after the caption and then removed by Useful? React with 👍 / 👎. |
||
| const ts = msg.created_at || new Date().toISOString(); | ||
| const room = msg._room || ''; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When users run the documented
ide-agent-kit platform watch --adapters groupmindpath,bin/cli.mjsimportssrc/team-relay/adapters/groupmind.mjs, not this adapter. That production adapter remains unchanged and itsnormalize()still discardsimage_url,audio_url, andfile_url, so attachments remain invisible in the unified CLI poller while the new test passes only against an unused duplicate.Useful? React with 👍 / 👎.