Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
21 changes: 20 additions & 1 deletion .github/workflows/terminal-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,30 @@ jobs:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

- name: Print results summary
if: always()
run: |
echo "=== Terminal-Bench Results Summary ==="
if [ -f "$(find runs -name 'results.json' | head -1)" ]; then
RESULTS_FILE=$(find runs -name 'results.json' | head -1)
echo "Results file: $RESULTS_FILE"
echo ""
echo "Full results.json:"
cat "$RESULTS_FILE" | jq '.' || cat "$RESULTS_FILE"
echo ""
echo "Per-task summary:"
cat "$RESULTS_FILE" | jq -r '.trials[] | "\(.task_id): \(if .resolved then "βœ“ PASS" else "βœ— FAIL" end)"' 2>/dev/null || echo "Failed to parse task details"
else
echo "No results.json found in runs/"
ls -la runs/
fi

- name: Upload benchmark results
if: always()
uses: actions/upload-artifact@v4
with:
name: terminal-bench-results-${{ inputs.model_name && format('{0}-{1}', inputs.model_name, github.run_id) || format('{0}', github.run_id) }}
# Replace colons with hyphens to avoid GitHub artifact name restrictions
name: terminal-bench-results-${{ inputs.model_name && replace(format('{0}-{1}', inputs.model_name, github.run_id), ':', '-') || format('{0}', github.run_id) }}
path: |
runs/
if-no-files-found: warn
Expand Down
6 changes: 6 additions & 0 deletions src/debug/agentSessionCli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ async function main(): Promise<void> {
const emitJsonStreaming = values["json-streaming"] === true;

const suppressHumanOutput = emitJsonStreaming || emitFinalJson;

// Log model selection for terminal-bench verification
if (!suppressHumanOutput) {
console.error(`[cmux-cli] Using model: ${model}`);
}

const humanStream = process.stdout;
const writeHuman = (text: string) => {
if (suppressHumanOutput) {
Expand Down