Allowlist with claude_cli: fail closed until hx#182; record provider mode (#18)
This commit was merged in pull request #18.
This commit is contained in:
1 parent
374cf28aed
commit
a76c0ac16f
9 files changed
+259
-14
No files matched your search
+8
-1
@@ -272,7 +272,14 @@ fn process(
|
||||
serde_json::json!({"status": r.status, "reason": r.reason, "attempts": r.attempts}),
|
||||
);
|
||||
// a telemetry failure must not lose the run
|
||||
if let Err(e) = report::append(telemetry, &report::rec(&r, &report::hx_version(p))) {
|
||||
if let Err(e) = report::append(
|
||||
telemetry,
|
||||
&report::rec(
|
||||
&r,
|
||||
&report::hx_version(p),
|
||||
&report::provider_mode(p, &r.worktree),
|
||||
),
|
||||
) {
|
||||
eprintln!("{}: telemetry: {e:#}", r.id);
|
||||
}
|
||||
if r.status == state::Status::Done {
|
||||
|
||||
Reference in new issue
Block a user