We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a68f801 commit 4de95f0Copy full SHA for 4de95f0
1 file changed
src/poller.rs
@@ -2,12 +2,14 @@ use std::path::PathBuf;
2
use std::process::Command;
3
use std::time::{Duration, SystemTime, UNIX_EPOCH};
4
5
+use std::os::windows::process::CommandExt;
6
use serde::Deserialize;
7
8
use crate::models::{UsageData, UsageSection};
9
10
const USAGE_URL: &str = "https://api.anthropic.com/api/oauth/usage";
11
const MESSAGES_URL: &str = "https://api.anthropic.com/v1/messages";
12
+const CREATE_NO_WINDOW: u32 = 0x08000000;
13
14
const MODEL_FALLBACK_CHAIN: &[&str] = &[
15
"claude-3-haiku-20240307",
@@ -74,6 +76,7 @@ fn cli_refresh_token() {
74
76
};
75
77
cmd.env_remove("CLAUDECODE")
78
.env_remove("CLAUDE_CODE_ENTRYPOINT")
79
+ .creation_flags(CREATE_NO_WINDOW)
80
.stdout(std::process::Stdio::null())
81
.stderr(std::process::Stdio::null());
82
0 commit comments