Skip to content

fix(slack-search): stop recovered tool failures from flagging the whole reply - #8336

Merged
TheodoreSpeaks merged 2 commits into
stagingfrom
fix/slack-somethnig-went-wrong
Sep 26, 2026
Merged

TheodoreSpeaks merged 2 commits into
stagingfrom
fix/slack-somethnig-went-wrong

Conversation

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator

Summary

  • Slack timeline mode collapses the whole task group under "Something went wrong" if any single task reports error
  • The agent routinely recovers from an individual failed search_workspace / read_document call and retries, so one rejected call was flagging otherwise successful answers
  • Finished tool calls now always report complete; error is reserved for tasks interrupted by a real Assistant failure (unchanged)

Type of Change

  • Bug fix

Testing

Updated assistant-stream tests; lint + audits pass

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

🤖 Generated with Claude Code

https://claude.ai/code/session_01CB5jCGYioyw1ddnx58wbbM

@vercel

vercel Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Sep 26, 2026 7:44pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Changes how tool failures are reported in chat responses.

The PR appears safe to merge; no outstanding finding remains.

Summary

The PR makes finished Slack search tool tasks report complete so a recovered tool failure does not mark the whole reply as failed.

  • The updated test covers a failed call followed by a successful retry and a completed answer.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Tool call] --> B[Task in progress]
  B --> C[Tool result]
  C --> D[Task complete]
  D --> E[Assistant continues and finishes reply]
Loading

Reviews (3) · Last reviewed commit: "test(slack-search): cover reply completi..."

Comment thread apps/sim/lib/slack-search/assistant-stream.test.ts Outdated
@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@greptile

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

Comment thread apps/sim/lib/slack-search/assistant-stream.test.ts
@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@greptile

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@TheodoreSpeaks
TheodoreSpeaks merged commit 7a36d74 into staging Sep 26, 2026
32 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/slack-somethnig-went-wrong branch September 26, 2026 21:29

This branch was previously deployed

1 inactive deployment
Preview — 4cb1ad8f Deployed Sep 26, 2026 by vercel[bot]
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.

1 participant