feat: one server button, and only primary agents to pick
The session screen now has a single server icon that opens the instance list; picking an instance drops the live connection and connects to it, and disconnecting moved into that list. A custom SVG rack stands in for the missing server symbol on Android. The agent sheet lists primary agents only: a session cannot run a subagent (General, Explore) as its own agent. Bump version to 0.1.5 (build 6).
This commit is contained in:
1 parent
9d9678e294
commit
e240a33e31
8 files changed
+76
-10
No files matched your search
@@ -87,7 +87,11 @@ func newChatServer(t *testing.T) *chatServer {
|
||||
{"id":"claude","providerID":"anthropic","name":"Claude"}]}`)
|
||||
})
|
||||
mux.HandleFunc("/api/agent", func(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprint(w, `{"data":[{"id":"build","name":"Build"},{"id":"plan","name":"Plan"}]}`)
|
||||
fmt.Fprint(w, `{"data":[
|
||||
{"id":"build","name":"Build","mode":"primary"},
|
||||
{"id":"plan","name":"Plan","mode":"primary"},
|
||||
{"id":"general","name":"General","mode":"subagent","hidden":false},
|
||||
{"id":"explore","name":"Explore","mode":"subagent"}]}`)
|
||||
})
|
||||
mux.HandleFunc("/api/session/ses_1/model", func(w http.ResponseWriter, r *http.Request) {
|
||||
var body map[string]any
|
||||
@@ -260,3 +264,18 @@ func TestCreateSession(t *testing.T) {
|
||||
t.Fatal("no create request reached the server")
|
||||
}
|
||||
}
|
||||
|
||||
func TestAgentPickerSkipsSubagents(t *testing.T) {
|
||||
srv := newChatServer(t)
|
||||
a := uitest.Mount(t, func() ui.Node { return rootWithStore(&memStore{}) }, uitest.Platform(ui.PlatformAndroid))
|
||||
connectViaForm(t, a, srv.URL)
|
||||
a.WaitFor("First session")
|
||||
a.Tap("First session")
|
||||
a.WaitFor("Hello from the agent")
|
||||
|
||||
a.Tap("Agent")
|
||||
a.WaitFor("Build")
|
||||
a.Expect("Plan")
|
||||
a.ExpectNo("General")
|
||||
a.ExpectNo("Explore")
|
||||
}
|
||||
Reference in new issue
Block a user