Commit 20c7360
committed
Agent should have context about the Slack thread it's responding to (vibe-kanban 2d08c3ef)
When responding to a Slack message in a thread, the agent currently only sees the current message - it doesn't have access to the full conversation thread history.
**Problem:**
User asked a question, agent responded with analysis, then user asked to create a ticket about "this" - but the agent didn't know what "this" referred to because it couldn't see the earlier messages in the thread.
**Example:** https://elementalprep.slack.com/archives/C0AM1EVLSH5/p1773924310782589?thread_ts=1773924094.381349&cid=C0AM1EVLSH5
**Expected behavior:**
When the agent is invoked in a Slack thread, it should fetch and include the thread history as context so it can understand references to earlier messages.
**Implementation ideas:**
- Use Slack MCP `conversations_replies` tool to fetch thread history when `thread_ts` is present
- Include thread context in the agent's system prompt or initial context1 parent d389465 commit 20c7360
2 files changed
+17
-6
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
166 | 178 | | |
167 | | - | |
168 | | - | |
| 179 | + | |
| 180 | + | |
169 | 181 | | |
170 | 182 | | |
171 | | - | |
172 | | - | |
| 183 | + | |
173 | 184 | | |
174 | 185 | | |
175 | 186 | | |
| |||
0 commit comments