Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@
- `cargo fmt` and `cargo clippy` must pass (CI enforced)
- Prefer explicit imports over glob imports
- Keep functions focused — if it's doing two things, split it

## Dogfooding
- This project uses itself (`tt`) to orchestrate development — tutti developing tutti
- When a tutti feature doesn't work during a dogfood run, **fix the framework** (the `tt` command / runtime / session code), don't work around it by doing the task manually
- Always validate the fix by re-running the original orchestration flow through `tt`
- The purpose of dogfood runs is to surface real bugs in tutti's agent orchestration, not to ship the target feature by any means necessary
3 changes: 3 additions & 0 deletions src/automation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3195,6 +3195,7 @@ mod tests {
fresh_worktree: None,
branch: None,
persistent: false,
memory: None,
env: HashMap::new(),
}],
tool_packs: vec![],
Expand Down Expand Up @@ -4410,6 +4411,7 @@ mod tests {
fresh_worktree: None,
branch: None,
persistent: false,
memory: None,
env: HashMap::new(),
},
AgentConfig {
Expand All @@ -4422,6 +4424,7 @@ mod tests {
fresh_worktree: None,
branch: None,
persistent: false,
memory: None,
env: HashMap::new(),
},
],
Expand Down
1 change: 1 addition & 0 deletions src/budget/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ mod tests {
fresh_worktree: None,
branch: None,
persistent: false,
memory: None,
env: HashMap::new(),
}],
tool_packs: vec![],
Expand Down
1 change: 1 addition & 0 deletions src/cli/doctor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ mod tests {
fresh_worktree: None,
branch: None,
persistent: false,
memory: None,
env: HashMap::new(),
}],
tool_packs: vec![],
Expand Down
1 change: 1 addition & 0 deletions src/cli/handoff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ mod tests {
fresh_worktree: None,
branch: None,
persistent: false,
memory: None,
env: HashMap::new(),
}],
tool_packs: vec![],
Expand Down
24 changes: 24 additions & 0 deletions src/cli/send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use crate::health::{WaitCompletionSource, WaitFailureReason};
use crate::runtime::{self, AgentStatus};
use crate::session::TmuxSession;
use crate::{budget, budget::BudgetGuardOutcome};
use colored::Colorize;
use serde::Serialize;
use std::path::PathBuf;
use std::time::{Duration, Instant};
Expand Down Expand Up @@ -72,6 +73,29 @@ pub fn run(
wait_for_runtime_ready(&runtime_name, &session, &agent_name)?;
}

// Check that the runtime is actually running (not exited to shell)
if let Some(adapter) = runtime::get_adapter(&runtime_name, None) {
let output = TmuxSession::capture_pane(&session, 200).unwrap_or_default();
let status = adapter.detect_status(&output);
if !launched_via_auto_up {
match &status {
AgentStatus::Unknown => {
eprintln!(
" {} {agent_name} runtime status is unknown (may have exited); prompt may hit the shell",
"warn".yellow()
);
}
AgentStatus::AuthFailed(err) => {
eprintln!(
" {} {agent_name} runtime reports auth failure: {err}; re-authenticate or check credentials",
"warn".yellow()
);
}
_ => {}
}
}
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

let capture_lines = options.output_lines.max(20);
let before_output = if options.output {
Some(TmuxSession::capture_pane(&session, capture_lines).unwrap_or_default())
Expand Down
Loading
Loading