mirror of
https://github.com/openai/codex.git
synced 2026-11-03 08:22:30 +00:00
1 parent
18cefba922
commit
93456320ef
5 files changed
+35
-35
No files matched your search
@@ -459,7 +459,7 @@ impl Session {
|
||||
|
||||
self.account_thread_goal_wall_clock_usage(
|
||||
&state_db,
|
||||
codex_state::ThreadGoalAccountingMode::ActiveOnly,
|
||||
codex_state::GoalAccountingMode::ActiveOnly,
|
||||
TerminalMetricEmission::Emit,
|
||||
)
|
||||
.await?;
|
||||
@@ -601,7 +601,7 @@ impl Session {
|
||||
let state_db = self.require_state_db_for_thread_goals().await?;
|
||||
self.account_thread_goal_wall_clock_usage(
|
||||
&state_db,
|
||||
codex_state::ThreadGoalAccountingMode::ActiveOnly,
|
||||
codex_state::GoalAccountingMode::ActiveOnly,
|
||||
TerminalMetricEmission::Emit,
|
||||
)
|
||||
.await?;
|
||||
@@ -1028,7 +1028,7 @@ impl Session {
|
||||
self.conversation_id,
|
||||
time_delta_seconds,
|
||||
token_delta,
|
||||
codex_state::ThreadGoalAccountingMode::ActiveOnly,
|
||||
codex_state::GoalAccountingMode::ActiveOnly,
|
||||
expected_goal_id.as_deref(),
|
||||
)
|
||||
.await?;
|
||||
@@ -1119,7 +1119,7 @@ impl Session {
|
||||
};
|
||||
self.account_thread_goal_wall_clock_usage(
|
||||
&state_db,
|
||||
codex_state::ThreadGoalAccountingMode::ActiveOnly,
|
||||
codex_state::GoalAccountingMode::ActiveOnly,
|
||||
TerminalMetricEmission::Suppress,
|
||||
)
|
||||
.await?;
|
||||
@@ -1129,7 +1129,7 @@ impl Session {
|
||||
async fn account_thread_goal_wall_clock_usage(
|
||||
&self,
|
||||
state_db: &StateDbHandle,
|
||||
mode: codex_state::ThreadGoalAccountingMode,
|
||||
mode: codex_state::GoalAccountingMode,
|
||||
terminal_metric_emission: TerminalMetricEmission,
|
||||
) -> anyhow::Result<Option<ThreadGoal>> {
|
||||
let _accounting_permit = self.goal_runtime.accounting_permit().await?;
|
||||
|
||||
Reference in new issue
Block a user