Skip to content

feat(clients): delegate-a-task on the menu bar + iOS#137

Merged
oratis merged 1 commit into
mainfrom
feat/delegate-native-clients
Jun 23, 2026
Merged

feat(clients): delegate-a-task on the menu bar + iOS#137
oratis merged 1 commit into
mainfrom
feat/delegate-native-clients

Conversation

@oratis

@oratis oratis commented Jun 23, 2026

Copy link
Copy Markdown
Owner

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 → NSAlert with a kind popup (managed / claude / codex) + task field → POST /api/agents/{managed,pty}/start (loopback, no token). New post() helper; failures (e.g. the PTY-disabled 503) surface in an alert. Folded the repeated 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).

Verification

  • mac-client swift build — clean.
  • iOS xcodebuild -sdk iphonesimulator … buildBUILD SUCCEEDED.

🤖 Generated with Claude Code

…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]>
@oratis oratis merged commit d23f932 into main Jun 23, 2026
@oratis oratis deleted the feat/delegate-native-clients branch June 23, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant