Skip to content

feat: include channel_id and permalink in search results#77

Merged
AmethystLiang merged 2 commits intostablyai:mainfrom
TheOutdoorProgrammer:feat/search-include-channel-id
Apr 11, 2026
Merged

feat: include channel_id and permalink in search results#77
AmethystLiang merged 2 commits intostablyai:mainfrom
TheOutdoorProgrammer:feat/search-include-channel-id

Conversation

@TheOutdoorProgrammer
Copy link
Copy Markdown
Contributor

Search results previously stripped channel_id and thread_ts via stripThreadListFields(). This made it impossible for agents to construct valid Slack message URLs from search results alone.

  • Keep channel_id in search output (only strip thread_ts)
  • Add permalink field from the search API response
  • Export SearchCompactMessage type for downstream consumers

This was entirely made with AI, sorry if its slop I just needed a quick fix (because I was getting bad URLS) and figured it would be helpful for you guys too.

TheOutdoorProgrammer and others added 2 commits April 9, 2026 11:06
Search results previously stripped channel_id and thread_ts via
stripThreadListFields(). This made it impossible for agents to
construct valid Slack message URLs from search results alone.

- Keep channel_id in search output (only strip thread_ts)
- Add permalink field from the search API response
- Export SearchCompactMessage type for downstream consumers
Copy link
Copy Markdown
Contributor

@AmethystLiang AmethystLiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks great! This correctly keeps channel_id and exports SearchCompactMessage. Tests pass locally. I've taken the liberty of removing the accidentally committed package-lock.json. Thanks for the contribution!

@AmethystLiang AmethystLiang merged commit 2ed5250 into stablyai:main Apr 11, 2026
1 check 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