A conversation under Stays auto keeps its member while its cache holds
cacheWorth (1024) or more. That stays: routing ranking another member
first on its own merits doesn't move a warm cache (backFromStandIn's
rule), since the ranking moves with every reading and a move pays the
whole prompt again. What was missing is the user's own act: a reorder
already counts at the next turn (reorderedSince), but changing a
group's routing (manual -> pace in #6708) did not, so the conversation
stayed on the manual pick.
Group gains RoutedAt, stamped by SaveGroup when Routing changes and
kept otherwise, so it is persisted and a change from the CLI or TUI
reaches the running gateway (unlike NoteReordered, #6265). affine's
Auto branch now also lets the conversation go when its stick predates
the group's RoutedAt. Session, Strict and a turn under way keep it, as
for a reorder. The sibling for a provider's own accounts routing is
#6718.
Tests: TestReroutedGroupTakesTheConversationAtItsNextTurn (a 2.8k
cache, the reporter's size: rerouted "a a b b", a rename-only save
"a a a a", session "a a a a") and TestGroupRoutedAtFollowsTheRouting.
Broken by hand: with reroutedSince returning false the first is red
("a a a a, want a a b b"); green with it, beside TestReorderedAccounts.
Run at e8e5b9e06 (this pair on origin/main 97e6ac36c), on mica because mote's load was over its cores: gofmt -l clean; GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet ./... and go vet ./... ok; HOME=sandbox go test -timeout 45m ./... ok, all 101 packages (gateway 932s, agent 337s, provider 209s), no reds. No GUI change. Not tried: a real Remote magpie on a free plan, or a real conversation through a rerouted group; both are covered by the tests above only.