Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 0 additions & 1 deletion Sources/TerminalController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,6 @@ class TerminalController {
}
}


private nonisolated func passwordAuthRequiredResponse(for command: String) -> String {
let message = "Authentication required. Send auth <password> first."
guard command.hasPrefix("{"),
Expand Down
5 changes: 4 additions & 1 deletion core/crates/programad/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,10 @@ async fn session_close(req: &Request, state: &Arc<AppState>) -> Result<Value, Er
let closed = tokio::task::spawn_blocking(move || close_state.sessions.close(&close_id, kill))
.await
.map_err(|error| {
ErrorBody::new(ErrorCode::InternalError, format!("close task panicked: {error}"))
ErrorBody::new(
ErrorCode::InternalError,
format!("close task panicked: {error}"),
)
})?
.map_err(|error| {
let code = if error.kind() == std::io::ErrorKind::TimedOut {
Expand Down
5 changes: 4 additions & 1 deletion core/crates/programad/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,10 @@ async fn session_close_escalates_to_sigkill_when_child_ignores_sighup() {
}
tokio::time::sleep(Duration::from_millis(50)).await;
}
assert!(saw_ready, "shell never printed READY after installing its SIGHUP trap");
assert!(
saw_ready,
"shell never printed READY after installing its SIGHUP trap"
);

// Expected cost is ~500ms SIGHUP grace + ~500ms SIGKILL grace plus reap/
// join/flush overhead; give real headroom above that rather than a tight
Expand Down
Loading