Common Issues
FAQ-style solutions for common Ralph TUI problems including task selection, agent errors, sessions, and rate limiting.
Task Selection Issues
"No tasks available"
This error occurs when Ralph TUI cannot find any tasks to execute.
Check your task source first - the cause differs depending on whether you're using prd.json or Beads.
For prd.json users:
- Verify your prd.json file exists and has the correct structure
- Check that tasks have
"passes": false- completed tasks ("passes": true) are skipped - Ensure tasks aren't blocked by incomplete dependencies
For Beads users:
- Check that your epic has open tasks:
Bash
- Verify tasks aren't blocked by dependencies:
Bash
- Ensure the epic ID matches what you specified in
--epic
Tasks Stuck in "in_progress"
If Ralph TUI crashed or was forcefully terminated, tasks may remain stuck in the in_progress state.
Solution:
Wrong Task Being Selected
Ralph TUI selects tasks based on priority and dependency order. If an unexpected task is selected:
- Check dependencies: Tasks with blockers are skipped
- Verify priorities: Lower priority numbers are processed first
- For beads-bv: PageRank and critical path analysis influence selection
Agent Issues
"Agent not found"
Ralph TUI cannot locate your AI agent CLI executable.
Solutions:
-
Verify the agent is installed:
Bash -
Check your PATH includes the agent:
Bash -
See detected agents:
Bash -
Specify the agent explicitly:
Bash -
Use
commandconfig for custom paths:TOML
If you installed an agent with a different package manager (npm, cargo, pip), you may need to add its bin directory to your PATH, or use the command config option to specify the full path.
Agent Output Not Streaming
If you don't see real-time output from the agent:
-
Check subagent tracing settings: High filtering may hide output
TOML -
Verify agent supports streaming: Claude Code uses
--printflag automatically -
Check terminal compatibility: Some terminals may buffer output
Agent Crashes or Exits Unexpectedly
API rate limits can cause agent failures. See the Rate Limiting section below for solutions.
Session Issues
"Session lock exists"
Another Ralph TUI instance may be running, or a previous session didn't shut down cleanly.
Solutions:
-
Check for running processes:
Bash -
Wait for the existing session to complete
-
Force override the lock:
Bash -
Manually remove the lock file:
Bash
Force overriding or deleting the lock file can lead to parallel runs. Only do this if you're certain no other session is running.
Session Won't Resume
If ralph-tui resume fails:
-
Check session file exists:
Bash -
Verify session file is valid JSON:
Bash -
Check for stale locks:
Bash -
Start fresh if needed:
Bash
Progress Lost After Crash
Ralph TUI saves progress after each iteration. If progress was lost:
-
Check iteration logs for completed work:
Bash -
Review the progress file:
Bash -
For Beads, task status is persisted immediately:
Bash
Rate Limiting
Handling API Rate Limits
When using Claude Code or other API-based agents, you may hit rate limits during long sessions.
Rate limiting is common with high-volume usage. Ralph TUI has built-in strategies to handle this gracefully.
Configure rate limit handling:
Strategy options:
| Strategy | Behavior |
|---|---|
wait | Pause and retry with exponential backoff |
fallback | Switch to a fallback agent |
abort | Stop execution immediately |
Reducing rate limit issues:
-
Use iteration delays:
Bash -
Limit concurrent sessions - Don't run multiple Ralph TUI instances simultaneously
-
Consider using a lower-tier model for less critical tasks:
Bash
Rate Limit with Beads Sync
If rate limits occur during Beads synchronization:
Completion Detection Issues
Task Not Marked Complete
Ralph TUI detects completion when the agent outputs <promise>COMPLETE</promise>. If tasks aren't being marked complete:
-
Verify the agent outputs the token:
Bash -
Check your prompt template includes completion instructions:
Bash -
Ensure the agent follows instructions - The prompt template should clearly instruct the agent to output the completion token
False Completion Detection
If tasks are marked complete prematurely:
-
Review the iteration logs:
Bash -
Check for early completion tokens in agent output
-
Verify acceptance criteria are being validated before completion
Configuration Issues
Config File Not Found
Ralph TUI looks for configuration in this order:
- CLI flags
- Project config:
.ralph-tui/config.toml - Global config:
~/.config/ralph-tui/config.toml
Solutions:
Config Options Not Taking Effect
-
Check config file syntax:
Bash -
Verify TOML formatting - TOML is sensitive to syntax
-
CLI flags override config - Check your command line options
-
View merged configuration:
Bash
Getting More Help
If your issue isn't covered here:
-
Run the diagnostic command to check for common issues:
Bash -
Collect system info for bug reports:
Bash -
Check the Debugging Guide for detailed diagnostic steps
-
Review iteration logs for error details:
Bash -
Check GitHub Issues for similar problems: github.com/subsy/ralph-tui/issues
When filing a bug report, include the output of ralph-tui info -c to help us diagnose your issue faster.