Merge pull request '[agent/codex:gpt-5.4-mini] Read ~/spec/code/core/go/cli/RFC.md fully. Find features des...' (#80) from agent/read---spec-code-core-go-cli-rfc-md-full into dev
All checks were successful
Security Scan / security (push) Successful in 26s

This commit is contained in:
Virgil 2026-04-02 11:21:18 +00:00
commit 0703a5727d
2 changed files with 7 additions and 1 deletions

View file

@ -61,7 +61,7 @@ func NewFrame(variant string) *Frame {
variant: variant, variant: variant,
layout: Layout(variant), layout: Layout(variant),
models: make(map[Region]Model), models: make(map[Region]Model),
out: os.Stdout, out: os.Stderr,
done: make(chan struct{}), done: make(chan struct{}),
focused: RegionContent, focused: RegionContent,
keyMap: DefaultKeyMap(), keyMap: DefaultKeyMap(),

View file

@ -2,6 +2,7 @@ package cli
import ( import (
"bytes" "bytes"
"os"
"strings" "strings"
"testing" "testing"
"time" "time"
@ -136,6 +137,11 @@ func TestFrame_Good(t *testing.T) {
assert.Less(t, elapsed, 200*time.Millisecond) assert.Less(t, elapsed, 200*time.Millisecond)
assert.Contains(t, buf.String(), "timed") assert.Contains(t, buf.String(), "timed")
}) })
t.Run("default output goes to stderr", func(t *testing.T) {
f := NewFrame("C")
assert.Same(t, os.Stderr, f.out)
})
} }
func TestFrame_Bad(t *testing.T) { func TestFrame_Bad(t *testing.T) {