Skip to content

RHAI-14534: disable Claude Code background tasks - #188

Merged
srija-ganguly merged 1 commit into
mainfrom
RHAI-14534-disable-background-tasks
Oct 28, 2026
Merged

srija-ganguly merged 1 commit into
mainfrom
RHAI-14534-disable-background-tasks

Conversation

@ktdreyer

@ktdreyer ktdreyer commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Claudio sessions in OpenShift die when the agent sends work to the background: the headless session ends when the turn finishes, so the scheduled wakeup never fires and the task is cut in half.

Set CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1 in the image.

https://redhat.atlassian.net/browse/RHAI-14534

Summary by CodeRabbit

  • Chores
    • Background task execution is disabled in the Claude Code environment running in the container. Tasks will no longer run in the background there; this change does not describe or imply a change to other environments or behaviors.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4294f5c5-49d3-4237-a293-fcd2b59241f9
Commits

Reviewing files that changed from the base of the PR and between 6e61ca0 and da2b568.

Files selected for processing: 1
  • Containerfile

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: aa11de9b-d954-46c1-a269-18db0be11ea3
Commits

Reviewing files that changed from the base of the PR and between 7e4e174 and 6e61ca0.

Files selected for processing: 1
  • Containerfile

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The Containerfile now sets CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1 in the Claude environment.

Changes: Claude environment

Layer / File(s) Summary
Set background task environment variable
Containerfile
The Containerfile sets CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1.

Priority: Normal

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Suggested reviewers: jrusz

Merge Risk: Minimal · previous review 6e61c

The configuration change is limited and appears ready to merge.

Pre-merge checks: Passed 4
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the ticket (RHAI-14534) and the change: disabling Claude Code background tasks. The raw summary says the Containerfile now sets CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1, which is exactly…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the ticket (RHAI-14534) and the change: disabling Claude Code background tasks. The raw summary says the Containerfile now sets CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1, which is exactly this change. The title is specific, short, and states the primary change, so it passes.

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Claudio sessions in OpenShift die when the agent sends work to the
background: the headless session ends when the turn finishes, so the
scheduled wakeup never fires and the task is cut in half.

Set CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1 in the image so every
consumer (downstream aipcc-claudio image, GitLab CI) inherits it. A
pod-level env var can still override this if needed.

https://redhat.atlassian.net/browse/RHAI-14534
@ktdreyer
ktdreyer force-pushed the RHAI-14534-disable-background-tasks branch from 6e61ca0 to da2b568 Compare October 28, 2026 17:40
@srija-ganguly
srija-ganguly merged commit 44a918f into main Oct 28, 2026
11 checks passed
@srija-ganguly
srija-ganguly deleted the RHAI-14534-disable-background-tasks branch October 28, 2026 20:27
@ktdreyer

Copy link
Copy Markdown
Contributor Author

I've tagged v0.9.3 with this change.

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