nav-timeout (#4470) holds every page given a short default timeout to a
navigation timeout of at least a minute. Two files broke it on main:
c0dd5838c (#3745, the coffemon batch in v0.1.2855) gave
library-problems-hide 20s, and 7033f5072 gave panel-open-once an 8s
default with no navigation timeout. Both now get 60000.
Found by the whole GUI suite run at 6cfe78635 after the tag (the batch's
pre-push GUI run covered library-* and i18n-keys, not nav-timeout).
Run, mote, Playwright 1.62.0, at this tree on origin/main 2741b749f:
- node --test nav-timeout, library-problems-hide, panel-open-once:
53 of 53 pass. Before the change nav-timeout was red at origin/main
listing both files (library-problems-hide alone at 6cfe78635).
Zachary-wW (#3745): the Library's "Some of the Library couldn't be
written" card had Try again and nothing else. Their Grok Build has an
AGENTS.md magpie can't stat, and every change writes every agent again,
so the card stood over the page through every edit on the Instructions
tab, with no way to put it away.
The card has a × beside Try again now, named "Hide until something new
can't be written". It hides the write failures the card lists, on every
tab, and sends nothing. The page keeps what was hidden by agent and item
("grok" and "instructions"). After every answer, a read or a change, it
lets go of a hidden failure that no longer stands, and a failure not
hidden brings the card back with all it lists; so does a hidden one
whose item was written in between and fails again. So the card stays
hidden while the reporter keeps editing, though each change fails on
Grok Build's file again, and a new write error shows it again.
The key is not the error's text: a write goes through a temp file named
anew at each try (edit.WriteAtomic), so a folder that can't be written
fails with a new text at every sync, and the card would never stay
hidden. Meanwhile each change's toast still names what failed, as
before, and a skill that couldn't be given keeps the dot on its agent's
chip. The list magpie keeps (lastProblems) is not touched. The × is
named by its title, as the Library's other × buttons are.
An agent's own skills in the library's way are the agent's to settle,
not failures: they stay, under their own title, with no ×. The view
keeps its scroll as the card goes, as render() keeps it for Try again;
Chromium's scroll anchoring moved it. From the keyboard the focus goes
to the card's next button, or to the tab open. On a phone the × is 44px
wide and as tall as Try again. The card's title keeps its words whole:
with less than 10em beside it, Try again and the × go to a line of their
own (beside them, a German title at 320px broke "Bibliothek" and
"geschrieben" inside).
library-problems-hide.test.cjs is new. Its API answers as
internal/gui/library.go does: a change's problems are its full sync's,
an Instructions change keeps the rest and puts its own in, and a read
gets the list with no result. Its error texts are the ones magpie's own
sync gave in a sandbox HOME, through Handler in a scratch Go test (not
kept): Grok Build's AGENTS.md a link into a folder magpie can't search,
its folder read-only, and its skills folder read-only.
Not covered: what was hidden lasts as long as the page, so a reload
shows the card again. The × hides, it doesn't fold: while the card is
hidden, its error texts and Try again are out of reach, though any
change writes every agent again. An agent's instructions, and its whole
MCP file, have no mark of their own as a skill's chip has, so with the
card hidden only a change's toast names their failure (#3987).
What was run (tree f98a4b99, on origin/main f8cd964a, go1.26.8,
linux/amd64, Linux 5.15), outside graftcp, umask 077:
library-problems-hide.test.cjs, Node's runner with Playwright 1.58,
Chromium and WebKit, three runs each: 16 of 16 pass in every run (15
cases and the file's own)
Without this change (f8cd964a's client.js, i18n.js and library.css,
the new test kept): 16 of 16 red in both. Broken by hand, one at a
time, Chromium and WebKit unless said:
any change that fails at all brings the card back (the first
draft's rule): the reporter's case, the same failure under another
error and a hidden failure written since, red
a change's failure not hidden brings it back, nothing let go: a
hidden failure written since, red
a new failure never brings it back while anything is hidden: a
failure not hidden, a hidden failure written since and another
window's change, red
the key with the error's text in it (Chromium): the same failure
under another error, red
the × writes every agent again (Chromium): 9 red, the reporter's
case among them
the view's scroll not kept as the card goes: 9 red in Chromium,
green in WebKit, which keeps it without
the × 44px wide on a phone taken out (Chromium): the five locales'
"named and inside the card", red
the head as the draft had it, no wrap and the title shrinking: de,
red
the focus moved without preventScroll (Chromium): green, 16 of 16;
no test here tells it apart
Library and siblings, Chromium and WebKit: 69 files, the Library's
own tests, the skills' and market's that share its page, gui-de,
gui-ja, gui-zh-tw and i18n-keys: all pass but two, red the same at
f8cd964a without this change: i18n-keys "a plugin's words are its
own", fixed on main since (#3897), and title-bar-tools (Chromium de,
WebKit all five locales: a locator.waitFor timeout)
TestCoreScriptBudget: ok (the Library is a plugin, outside the core);
on origin/main c752082e with this commit applied too (a scratch
worktree, not this tree)
On origin/main e9dd8e83 with this commit applied (a scratch
worktree, not this tree), Chromium and WebKit:
library-problems-hide, i18n-keys, library-items and
library-instr-busy, 66 of 66 pass
gofmt -l of every .go file: nothing. GOOS=linux, windows and darwin
go vet -tags nogui ./..., GOOS=windows go vet ./...: exit 0.
GOOS=linux and darwin go build -tags nogui ./..., GOOS=windows go
build ./...: exit 0. Untagged linux vet and build stop at pkg-config
(no libsoup-3.0 or gio-unix-2.0 here)
full suite, go test -tags nogui -count=1 -timeout 45m ./... (8m25s,
load 35 at its start, Bun 1.4.2): 68 packages ok, reds in 8, none
in internal/gui's library code:
internal/agent TestInstalledVersion, TestZedAppPath,
TestCursorFolderFromTheEditorIsNotTheCLI,
TestCopilotFolderFromAnIDEPluginIsNotTheCLI,
TestQoderSettingsFromAnIDEPluginIsNotTheCLI and
TestOmpDetectedWithPiDir (#3141); TestCodexDriftReached (#3398);
the two Reasonix tests (#3641); TestWSLColdPlaceOpensNothing
(#3924, fixed on main since)
internal/davsync TestSyncTeraCloudStillSeesOtherWrites (#3420)
internal/edit TestWriteAtomicReadOnlyHardLink and internal/testenv
TestProgram, umask 077 (#3640)
internal/gateway TestPluginToldWhereTheAgentWorks (#3675)
internal/gui TestGatewayHeldByAContainer and
TestGatewayFixQuitsOnlyAMagpie (#3649)
internal/provider TestCodexAppServersOnHome (#3906), then "fatal
error: close of synctest channel from outside bubble" (#3632),
which ends the package's run
internal/tui TestTUIFetchesSubscriptionModels/agent (#3919)
Not tried: the × in a running magpie, in macOS's or Windows' window or
WebKitGTK; the page here is the test's, with magpie's own replies.
Batch run, at tree 104d75f0a (the twelve coffemon ports together, on
origin/main 7d022bdb6), mote, macOS, go1.26.8:
- go test -tags nogui -count=1 -timeout 45m on the packages the batch
changes (agent, autostart, daemon, gateway, library, proc, provider,
sessions, testenv, tui, gui): ok each.
- GUI, node --test with Playwright 1.62.0, Chromium and WebKit:
library-*.test.cjs and i18n-keys.test.cjs, 1044 of 1044 pass.
- gofmt -l: nothing. go vet ./..., GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./... and go build ./...: ok at cdd7c8e46, the same
batch on origin/main 00098f12b one rebase before.
- The whole go test ./... at cdd7c8e46: 86 packages ok, one red,
internal/cli TestEveryRouteHasACommandOrIsNamed (GET
/api/context/reply has no command), red on main too (#5026).
- Linux (wsl-run, Ubuntu 24.04, at 339055896, the batch on f4c664a09):
proc, autostart, testenv, tui ok; agent: only TestGrokInstalled red
(#3548); #4033's proc.Look reds (Zed, Copilot, Qoder, Cursor, Omp)
pass.
- Windows (win-run, Windows 11, at 339055896): proc, autostart, testenv,
tui ok; library and agent red in the same tests as on origin/main
f4c664a09 (#4115, #1827, #4786; #5068, #5069, #5070 filed now).
- Rebased onto origin/main fb1f4856a (three commits, no file in
common with the batch) and run again at the pushed tree: gofmt -l
nothing, go build ./... and go vet ./... ok; go test -tags nogui
sessions, agent, autostart, tui, proc, testenv ok; i18n-keys and
library-* 1044 of 1044 pass.
- Not run before the push: the whole GUI suite (a run at cdd7c8e46 was
cut off at 1170 of ~1174 tests when mote rebooted; it runs again after
the tag and any red is filed).