Compare commits

...

2 Commits

Author SHA1 Message Date
Google Admin 130ad00cc6 Refactor Github Action per b/485167538 (#19334)
Co-authored-by: Ben Knutson <benknutson@google.com>
2026-02-17 18:37:39 -08:00
Owen Obrien 77ed1428b7 removed redundant extra copies of GEMINI_CLI_START_SESSION_VERTEX_API_ENABLED from start_session events 2025-09-12 15:13:44 -05:00
3 changed files with 13 additions and 11 deletions
@@ -71,8 +71,10 @@ jobs:
if: |-
github.event_name == 'workflow_dispatch' && !contains(steps.get_issue_data.outputs.labels, 'status/need-triage')
run: |
echo "Issue #${{ github.event.inputs.issue_number }} does not have the 'status/need-triage' label. Stopping workflow."
echo "Issue #${GITHUB_EVENT_INPUTS_ISSUE_NUMBER} does not have the 'status/need-triage' label. Stopping workflow."
exit 1
env:
GITHUB_EVENT_INPUTS_ISSUE_NUMBER: ${{ github.event.inputs.issue_number }}
- name: 'Checkout'
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # ratchet:actions/checkout@v5
@@ -316,6 +316,14 @@ export class CoreToolScheduler {
currentCall.status === 'error' ||
currentCall.status === 'cancelled'
) {
/*
if (currentCall.status === 'cancelled') {
currentCall.outcome = ToolConfirmationOutcome.Cancel;
}
if (currentCall.status === 'error') {
currentCall.outcome = ToolConfirmationOutcome.Cancel;
}
*/
return currentCall;
}
@@ -368,20 +368,10 @@ export class ClearcutLogger {
EventMetadataKey.GEMINI_CLI_START_SESSION_DEBUG_MODE_ENABLED,
value: event.debug_enabled.toString(),
},
{
gemini_cli_key:
EventMetadataKey.GEMINI_CLI_START_SESSION_VERTEX_API_ENABLED,
value: event.vertex_ai_enabled.toString(),
},
{
gemini_cli_key: EventMetadataKey.GEMINI_CLI_START_SESSION_MCP_SERVERS,
value: event.mcp_servers,
},
{
gemini_cli_key:
EventMetadataKey.GEMINI_CLI_START_SESSION_VERTEX_API_ENABLED,
value: event.vertex_ai_enabled.toString(),
},
{
gemini_cli_key:
EventMetadataKey.GEMINI_CLI_START_SESSION_TELEMETRY_ENABLED,
@@ -420,6 +410,7 @@ export class ClearcutLogger {
logNewPromptEvent(event: UserPromptEvent): void {
this.promptId = event.prompt_id;
console.log("Logging new prompt event: %s", this.promptId);
const data: EventValue[] = [
{
gemini_cli_key: EventMetadataKey.GEMINI_CLI_USER_PROMPT_LENGTH,
@@ -432,6 +423,7 @@ export class ClearcutLogger {
}
logToolCallEvent(event: ToolCallEvent): void {
console.log("Tool Call Decision: %s", event.decision);
const data: EventValue[] = [
{
gemini_cli_key: EventMetadataKey.GEMINI_CLI_TOOL_CALL_NAME,