Fix session-view navigation for PTY fallback sessions

Change API response message from 'Terminal spawned successfully' to
'Session created successfully' for PTY fallback sessions. This allows
the web frontend to properly navigate to session-view instead of
treating it as a terminal window spawn.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Mario Zechner 2025-06-18 13:08:30 +02:00
parent 9b3839e361
commit 68dd22e183

View file

@ -484,7 +484,7 @@ fn handle_create_session(
println!("Terminal spawned with session ID: {terminal_session_id}");
let response = ApiResponse {
success: Some(true),
message: Some("Terminal spawned successfully".to_string()),
message: Some("Session created successfully".to_string()),
error: None,
session_id: Some(terminal_session_id),
};