feat(clients): delegate-a-task on the menu bar + iOS#137
Merged
Conversation
…from native UIs)
The delegate-a-task action existed only in the web GUI. Add it to the two native
client surfaces that show the roster but couldn't start an agent.
Menu bar (AppKit, MenuBarController.swift):
- "+ Delegate a task" button in the popover → an NSAlert with a kind popup
(managed / claude / codex) + a task field → POST /api/agents/{managed,pty}/start
(loopback, no token). New post() helper; failures (e.g. PTY-disabled 503) show
in an alert. Refactored the popover-rebuild into rebuildPopoverIfShown().
iOS (SwiftUI, Lisa Pocket):
- A "+" toolbar button on the roster opens a DelegateSheet (Picker + multiline
task field + Start). managed → managedStart; claude/codex → new
LisaClient.ptyStart(agent:task:) (surfaces the 503 hint inline).
Verified: mac-client `swift build` clean; iOS `xcodebuild -sdk iphonesimulator`
BUILD SUCCEEDED.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
"Delegate a task" existed only in the web GUI. Added it to the two native client surfaces that showed the roster but couldn't start an agent.
Menu bar (AppKit): a + Delegate a task button in the popover →
NSAlertwith a kind popup (managed / claude / codex) + task field →POST /api/agents/{managed,pty}/start(loopback, no token). Newpost()helper; failures (e.g. the PTY-disabled 503) surface in an alert. Folded the repeated popover-rebuild intorebuildPopoverIfShown().iOS (SwiftUI, Lisa Pocket): a + toolbar button on the roster opens a
DelegateSheet(Picker + multiline task field + Start). managed →managedStart; claude/codex → newLisaClient.ptyStart(agent:task:)(surfaces the 503 hint inline).Verification
swift build— clean.xcodebuild -sdk iphonesimulator … build— BUILD SUCCEEDED.🤖 Generated with Claude Code