Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix fallback runtime dependencies and telemetry module loading
Deploy fallback model helpers with safe outputs and load the telemetry fallback helper before runtime filesystem mocks are installed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
  • Loading branch information
pelikhan and Copilot committed Oct 7, 2026
commit 1a01506d212b81cbbaefdf985b5bd402f89bdd63
3 changes: 2 additions & 1 deletion actions/setup/js/send_otlp_span.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const { resolveAICreditsFailureState } = require("./ai_credits_context.cjs");
const { collectCodexMixedRecords } = require("./parse_codex_log.cjs");
const { normalizeCodexSession } = require("./codex_session.cjs");
const { projectSessionResult, observedSessionModel } = require("./agent_session.cjs");
const { getFallbackModel } = require("./model_fallback.cjs");

/**
* send_otlp_span.cjs
Expand Down Expand Up @@ -2176,7 +2177,7 @@ async function sendJobConclusionSpan(spanName, options = {}) {

const workflowName = awInfo.workflow_name || process.env.GH_AW_INFO_WORKFLOW_NAME || process.env.GITHUB_WORKFLOW || "";
const engineId = resolveEngineId(awInfo);
const model = require("./model_fallback.cjs").getFallbackModel("/tmp/gh-aw/aw_info.json", process.env.GH_AW_PHASE || "agent") || awInfo.model || "";
const model = getFallbackModel("/tmp/gh-aw/aw_info.json", process.env.GH_AW_PHASE || "agent") || awInfo.model || "";
const staged = awInfo.staged === true;
const itemType = typeof awInfo.context?.item_type === "string" ? awInfo.context.item_type : "";
const itemNumber = typeof awInfo.context?.item_number === "string" ? awInfo.context.item_number : "";
Expand Down
3 changes: 3 additions & 0 deletions actions/setup/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ SAFE_OUTPUTS_FILES=(
"messages_footer.cjs"
"compact_numbers.cjs"
"model_aliases.cjs"
"model_fallback.cjs"
"awf_reflect.cjs"
"awf_reflect_paths.cjs"
"messages_header.cjs"
"messages_run_status.cjs"
"messages_staged.cjs"
Expand Down
Loading