Skip to content

fix(session): log summary and prune background task failures - #36361

Closed
1837620622 wants to merge 2 commits into
anomalyco:devfrom
1837620622:fix/log-summary-prune-background-failures
Closed

fix(session): log summary and prune background task failures#36361
1837620622 wants to merge 2 commits into
anomalyco:devfrom
1837620622:fix/log-summary-prune-background-failures

Conversation

@1837620622

@1837620622 1837620622 commented Jul 11, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #36366

Related: #13710 (same silent-failure class for title generation)

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Background summary.summarize and compaction.prune are forked with Effect.ignore, so failures produce no logs.

Replace Effect.ignore with Effect.catchCause + warning logs (skip interrupt-only causes). Behavior stays non-blocking (still forked).

How did you verify your code works?

  • Diff-reviewed call sites in packages/opencode/src/session/prompt.ts
  • Confirmed both paths previously used Effect.ignore with no diagnostics

Screenshots / recordings

N/A — non-UI

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

summary.summarize and compaction.prune are forked with Effect.ignore,
so failures disappear with no diagnostics — same silent pattern as
title generation before logging was added.

Minimal fix: replace Effect.ignore with Effect.catchCause + warning
logs at both call sites. Behavior stays non-blocking (still forked).
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Jul 11, 2026
@1837620622

Copy link
Copy Markdown
Author

Ready for review — same silent-failure class as title gen (#36356), for summary/prune only. — @1837620622

Match ensureTitle background logging: do not warn when the forked
summary/prune fiber is interrupted-only.
@github-actions github-actions Bot removed needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Jul 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@1837620622

Copy link
Copy Markdown
Author

Review ping 🙏

Background summary.summarize / compaction.prune failures are logged instead of swallowed via Effect.ignore. Non-blocking (still forked); checks green.

@1837620622

CreatorGhost added a commit to CreatorGhost/TheCode that referenced this pull request Jul 12, 2026
CreatorGhost added a commit to CreatorGhost/TheCode that referenced this pull request Jul 12, 2026
@1837620622

Copy link
Copy Markdown
Author

Gentle follow-up

Still ready for review.

Logs background summary.summarize / compaction.prune failures instead of swallowing them via Effect.ignore (same silent-failure class as title gen). Non-blocking; checks green.

Thanks!

@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(session): summary/prune background tasks swallow failures with Effect.ignore

1 participant