feat: centralize default constants and refactor overlay enter handling in TUI

This commit is contained in:
asepharyana
2026-07-21 07:00:15 +07:00
parent 8c58faf292
commit d615090dcd
34 changed files with 216 additions and 359 deletions
+3 -3
View File
@@ -144,15 +144,15 @@ fn run_api_server(port: u16) -> anyhow::Result<()> {
"JWT_SECRET environment variable not set; using insecure default. \
Set JWT_SECRET to a secure random value in production."
);
"dev-secret".to_string()
zesdex_domain::agent::defaults::FALLBACK_JWT_SECRET.to_string()
});
let state = zesdex_api::ApiState::new(
store.base_dir.clone(),
jwt_secret,
"",
"deepseek-v4-flash-free",
Some("https://opencode.ai/zen/v1".to_string()),
zesdex_domain::agent::defaults::DEFAULT_MODEL,
Some(zesdex_domain::agent::defaults::DEFAULT_API_BASE.to_string()),
);
let app = zesdex_api::build_router(state);
let addr = std::net::SocketAddr::from(([0, 0, 0, 0], port));