Commit Graph

408 Commits

Author SHA1 Message Date
ben
b53d791bea feat(app): redesign tool call steps UI for cleaner, more compact display (#498)
- Replace flat step list with compact single-line rows featuring status dots,
  tool-type-specific icons (read/edit/search/terminal/etc), and truncated details
- Add classifyTool() for semantic tool categorization and icon mapping
- Improve summarizeStep() to extract filenames, commands, and patterns
  instead of dumping raw output with line numbers
- Replace bordered card container with clean left-border-line expand panel
- Show step count badge in collapsed state ('N steps')
- Add running state indicator with pulse animation
- Use ChevronRight rotate animation instead of ChevronDown for expand/collapse
- Extract StepsContainer as reusable component for both cluster and inline steps
- Filter out raw file content markers (<file> 00001|) from detail text
- Parse 'Success. Updated...' messages to show just the filename
2026-02-07 14:56:36 -08:00
Benjamin Shafii
744d1277e8 chore: bump version to 0.11.31 2026-02-07 14:55:01 -08:00
ben
10213763a1 fix(app): restore Plugins tab in dashboard sidebar (#497)
The Plugins nav item was dropped during the DLS alignment refactor (bd6062c).
The PluginsView component and tab routing were still wired correctly --
only the sidebar and mobile bottom-nav buttons were missing.

- Add Plugins button to right sidebar (between Skills and Apps)
- Add Plugins button to mobile bottom nav (5-col grid)
- Import Cpu icon from lucide-solid (same icon used before removal)
2026-02-07 14:11:41 -08:00
Benjamin Shafii
c9e6aee058 chore: bump version to 0.11.30 2026-02-07 13:10:49 -08:00
TY
8e42fc549b fix: allow data:image/* URLs in markdown renderer (#491)
The isSafeUrl function was blocking all data: URLs including
data:image/jpeg;base64,... returned by AI image generation models.
This caused markdown images like ![image](data:image/jpeg;base64,...)
to render with empty src, showing only the alt text 'Image'.

Now data:image/* URIs are whitelisted while other data: schemes
(e.g. data:text/html) remain blocked to prevent XSS.

Co-authored-by: taoyuan <taoyuan@gmail.com>
2026-02-07 13:06:06 -08:00
TY
6120ad5b56 fix: prevent Enter key during IME composition from triggering actions (#492)
When using an IME (e.g. Chinese, Japanese, Korean input methods), pressing
Enter to confirm character conversion was incorrectly triggering form
submissions, message sends, and other actions.

Changes across 10 files:

- composer.tsx: triple-check IME state (event.isComposing + manual
  compositionstart/end flag + keyCode === 229) with addEventListener
  binding to work around SolidJS event delegation limitations
- model-picker-modal.tsx: guard Enter for model selection
- question-modal.tsx: guard Enter for option/custom input (2 handlers)
- rename-session-modal.tsx: guard Enter for session rename
- rename-workspace-modal.tsx: guard Enter for workspace rename
- dashboard.tsx: guard Enter for workspace/session list items (3 handlers)
- session.tsx: guard Enter for workspace/session list items (3 handlers)
- proto-v1-ux.tsx: guard Enter for expandable section toggle
- skills.tsx: guard Enter for skill card activation
- onboarding.tsx: guard Enter for directory path input

Co-authored-by: taoyuan <taoyuan@gmail.com>
2026-02-07 13:03:03 -08:00
ben
f3da381606 feat: minimal container sandbox + server tokens + toy UI (#494)
* feat(server): add scoped tokens, inbox/outbox, toy UI, and auth hardening

- TokenService with file-based persistence (tokens.json)
- /tokens CRUD (host auth), /whoami (client auth)
- Bearer token auth accepting OPENWORK_TOKEN or scoped tokens
- POST /workspace/:id/inbox (multipart upload)
- GET /workspace/:id/artifacts, /workspace/:id/artifacts/:id
- Toy UI at /ui with SSE, prompt send, inbox upload, outbox download
- Extended GET /capabilities with schemaVersion, serverVersion, approvals info
- Updated README with all new endpoints and auth model

* feat(headless): add sandbox runtime with Docker and Apple container backends

- --sandbox none|auto|docker|container CLI flag
- --sandbox-image, --sandbox-persist-dir, --sandbox-mount options
- Mount security: allowlist, blocked patterns, symlink resolution
- Docker backend: workspace/persist volumes, sidecar staging, entrypoint
- Apple container backend: --mount type=bind for ro mounts
- Sandbox mode proxies all OpenCode access through openwork-server
- Proxy health check (waitForHealthyViaProxy) avoids SDK auth issues
- Sandbox-specific check suite (runSandboxChecks) for --check mode
- Non-fatal verifyOpenworkServer in sandbox mode for version mismatches
- Updated README with sandbox docs and mount security

* feat(packaging): add Docker/docker-compose PaaS packaging

- Dockerfile (node:22-bookworm-slim, installs openwrk via npm)
- docker-compose.yml with workspace and data volumes
- README with usage instructions

* fix(headless): define sandbox owpenbot internal health port
2026-02-07 13:01:15 -08:00
ben
cba77fa04f fix(owpenbot): lazy WhatsApp onboarding and REST pairing (#496)
- Default WhatsApp to disabled unless creds/config enable it\n- Never print QR codes from bridge startup (printQr=false)\n- Lazy-load WhatsApp adapter to avoid Bun ws warnings when disabled\n- Add REST endpoints: GET /whatsapp/qr, GET/POST /config/whatsapp-enabled\n- Only print CLI command hints in interactive TTY mode
2026-02-07 13:01:06 -08:00
ben
541d7ff392 fix(headless): pick random owpenbot health port by default (#495)
Avoid hard-coding 3005 so owpenbot health checks don't fail when the default port is already in use. Still supports explicit --owpenbot-health-port / OWPENBOT_HEALTH_PORT overrides.
2026-02-07 11:21:09 -08:00
Benjamin Shafii
a0d5021de8 chore: update Cargo.lock for 0.11.29 2026-02-07 00:05:48 -08:00
Benjamin Shafii
25200fa0e3 chore: bump version to 0.11.29 2026-02-07 00:04:38 -08:00
ben
b2a006f338 fix(workspace): avoid UI stalls when switching (#489) 2026-02-06 23:40:40 -08:00
Benjamin Shafii
ffe6fee8cb feat(landing): add enterprise page and booking link 2026-02-06 21:26:55 -08:00
Benjamin Shafii
85005c1127 chore: bump version to 0.11.28 2026-02-06 21:20:19 -08:00
ben
265ed971b5 fix(owpenbot): make token saves fast and resilient (#488)
* fix(owpenbot): make token saves fast and resilient

Persist Telegram/Slack tokens even when owpenbot is offline, bound adapter restarts to avoid long hangs, and refresh UI status with apply warnings.

* chore: update Cargo.lock

Keep desktop Cargo.lock in sync with the crate version so CI cargo --locked passes.
2026-02-06 21:18:45 -08:00
Benjamin Shafii
7b8e7b0352 chore: bump version to 0.11.27 2026-02-06 18:57:45 -08:00
ben
a898405889 chore(plugins): drop opencode-browser from suggested defaults (#487) 2026-02-06 18:56:06 -08:00
Benjamin Shafii
bf5a0bff86 fix(composer): restore agent dropdown
Bring back the composer agent picker dropdown wired to the SDK-backed agent list, so users can select an agent without relying on @mentions.
2026-02-06 18:42:28 -08:00
Benjamin Shafii
7026ca5d73 fix(workspaces): make workspace switches less disruptive
Keep the dashboard stable when switching workspaces by preventing implicit session navigation during connect/reconnect flows. Delay the switch overlay to avoid flashes on fast switches and reuse an existing local host when bouncing remote<->local.
2026-02-06 18:28:45 -08:00
Benjamin Shafii
6f98092b0c chore: bump version to 0.11.26 2026-02-06 16:58:06 -08:00
Benjamin Shafii
267082ab48 fix(workspaces): scope sidebar tasks and restore local switching
Filter sidebar sessions by workspace root so local workspaces don't show identical task lists. Also start the local host engine when switching from a remote workspace back to local, and hide the session count badge to prevent header overflow.
2026-02-06 16:56:29 -08:00
Benjamin Shafii
311d862e87 chore: bump version to 0.11.25 2026-02-06 14:53:26 -08:00
ben
9b87ccaba7 feat: multi-workspace hosting + workspace-scoped tasks sidebar (#485)
* feat(server): expose all workspaces and support mounted baseUrl

* feat(ui): keep tasks visible across workspaces

* feat(desktop): default engine runtime to openwrk

* feat(owpenbot): route chats by directory bindings
2026-02-06 14:49:17 -08:00
Benjamin Shafii
7a26fd29f1 chore: bump version to 0.11.24 2026-02-06 12:53:59 -08:00
Benjamin Shafii
d6f7697086 chore: bump version to 0.11.23 2026-02-06 10:38:33 -08:00
Benjamin Shafii
609ca9c5e2 chore(build): default OpenCode to latest
Stop pinning OpenCode in package metadata and resolve the latest release during sidecar bundling/runtime, while still allowing OPENCODE_VERSION to pin for reproducible builds.
2026-02-06 10:27:40 -08:00
IanShaw
a809bb95fd fix: compress image attachments before sending to prevent UI freeze (#482)
Images are now compressed via canvas resize (max 2048px) + JPEG transcode
(quality 0.82, target <1.5MB) before base64 encoding. Uses OffscreenCanvas
when available to avoid blocking the main thread. Adds a post-encoding size
pre-check to show an explicit error instead of silently failing.

Fixes #481
2026-02-06 09:30:48 -08:00
Benjamin Shafii
d36a630096 chore: bump version to 0.11.22 2026-02-06 08:38:06 -08:00
Benjamin Shafii
6cdeacb982 feat(automations): add run action and human schedules 2026-02-06 08:31:25 -08:00
Benjamin Shafii
ed1aed068f fix(ui): improve settings contrast and session sidebar state 2026-02-06 08:31:19 -08:00
ben
081bcad71e fix(session): remove duplicate new messages indicator (#480) 2026-02-06 07:45:16 -08:00
ben
0f11673c89 feat(config): move workspace settings into Config page (#483) 2026-02-06 07:42:10 -08:00
Benjamin Shafii
f6e7080015 chore: bump version to 0.11.21 2026-02-06 00:13:34 -08:00
ben
05a0499f88 feat(workspace): scope OpenWork sharing via /w/:id mounts (#479)
* feat(workspace): add Share modal in workspace menu

* feat(workspace): share workspace from session view

* feat(workspace): store OpenWork token per workspace

* feat(workspace): scope OpenWork sharing via /w/:id mounts
2026-02-06 00:07:23 -08:00
Benjamin Shafii
d309fd97c2 chore: update Cargo.lock for 0.11.20 2026-02-06 00:06:04 -08:00
Benjamin Shafii
4267330022 chore: bump version to 0.11.20 2026-02-06 00:05:31 -08:00
Benjamin Shafii
e1df942970 feat(skills): add basic viewer/editor with server-backed reads 2026-02-05 23:55:14 -08:00
Benjamin Shafii
3d7ecffa98 fix(composer): correct slash command send + render command chip 2026-02-05 23:55:01 -08:00
Benjamin Shafii
262408ea01 feat(landing): add PostHog analytics tracking 2026-02-05 23:11:13 -08:00
Benjamin Shafii
8d6a0a9791 chore: bump version to 0.11.19 2026-02-05 22:10:16 -08:00
ben
30fa07157b feat(composer): add slash command support with fuzzy picker (#477)
Type / at the start of an empty input to trigger a command picker popup.
Commands are fetched from the OpenCode SDK (command.list()) and displayed
with fuzzy filtering via fuzzysort. Keyboard navigation (arrows, tab,
enter, escape) works like the existing @-mention popup.

Selecting a command inserts /<name> into the editor so the user can
add arguments. On submit, text starting with / is detected and routed
through session.command() instead of session.promptAsync().

Changes:
- types.ts: add SlashCommandOption type and command field on ComposerDraft
- composer.tsx: slash detection, popup UI, keyboard nav, command selection
- session.tsx: pass listCommands prop through to Composer
- app.tsx: add listCommands(), route command drafts via session.command()
2026-02-05 20:07:13 -08:00
ben
21df698237 fix(release): don't let openwrk releases override OpenWork updater (#478)
* fix(release): keep openwrk releases from overriding latest

* chore(desktop): sync Cargo.lock after version bump
2026-02-05 19:14:15 -08:00
Benjamin Shafii
8153194dfa chore: bump version to 0.11.18 2026-02-05 18:35:57 -08:00
ben
39a46b5540 feat(owpenbot): add Slack Socket Mode bridge (#476) 2026-02-05 18:26:02 -08:00
ben
9413e10d03 feat(updates): add auto-update toggle and update pill (#475) 2026-02-05 18:11:04 -08:00
ben
6ae1ed9219 ui(mcp): align Apps page with dashboard cards (#474) 2026-02-05 17:55:00 -08:00
ben
882422448d feat(workspace): seed OpenWork default agent (#473)
Create .opencode/agents/openwork.md in new workspaces and set default_agent=openwork in opencode.json(c) when missing.
2026-02-05 17:43:12 -08:00
Benjamin Shafii
83c95a82a2 chore: bump version to 0.11.17 2026-02-05 17:23:36 -08:00
Benjamin Shafii
b46a58aea9 fix: make jump-to-latest a true overlay outside the scroll container
Move the button from inside overflow-y-auto (scrolls with content)
to inside the outer relative wrapper (stays fixed at bottom).
2026-02-05 17:07:27 -08:00
Benjamin Shafii
71fa6ad6a8 fix: position jump-to-latest as absolute overlay at bottom of scroll container
Moves the button outside the scroll content flow so it no longer
overlaps message text. Now floats centered at the bottom of the
scroll viewport.
2026-02-05 17:04:32 -08:00