Skip to content

Release v0.4.2#94

Merged
ktmage merged 5 commits into
masterfrom
development
Mar 8, 2026
Merged

Release v0.4.2#94
ktmage merged 5 commits into
masterfrom
development

Conversation

@ktmage
Copy link
Copy Markdown
Owner

@ktmage ktmage commented Mar 8, 2026

Summary

Changes

opencode agent (packages/agents/opencode)

  • Migrated to @opencode-ai/sdk/v2 API
  • Updated SSE subscription, API method signatures, and event types

Core types (packages/core)

  • Updated Permission domain type to match v2 PermissionRequest structure

Webview UI (packages/platforms/vscode/webview)

  • New PermissionQueue component with compact bar style (first item prominent, rest collapsible)
  • Added ShieldIcon atom
  • Updated usePermissions hook for v2 events
  • Added permission.title locale key across all 8 languages
  • Removed inline permission display from MessageItem/MessagesArea

Tests

  • All test suites pass: webview (1,520 tests), ext host (75 tests), opencode agent (85 tests)

Closes #91, Closes #92

ktmage added 5 commits March 8, 2026 16:01
Migrate from @opencode-ai/sdk to @opencode-ai/sdk/v2 to match
opencode server v1.2.20 which sends v2-format events.

Key changes:
- Import path: @opencode-ai/sdk → @opencode-ai/sdk/v2
- API calls: nested path params → flat params
- Event names: permission.updated → permission.asked
- Permission type: Permission → PermissionRequest fields
- Reply methods: raw fetch → client.permission.reply / question.reply
- SSE subscription: positional → options arg
Replace the stacked warning-box permission UI with a compact bar-style
queue that matches TodoHeader / FileChangesHeader design patterns.

- Move permissions from MessageItem to a dedicated PermissionQueue above InputArea
- Show first pending permission expanded, collapse the rest behind a count badge
- Click header bar to expand/collapse remaining permissions
- Use ShieldIcon with warning accent color for visual distinction
- Buttons use sm size for compact layout
- Reply uses permission.sessionID for correct child-session handling
- Add ShieldIcon (VscShield) to icon components for permission header
- Add 'permission.title' key to all 8 locale files (en, ja, zh-cn,
  zh-tw, ko, es, pt-br, ru)
feat: パーミッションUI改善 — SDK v2対応 + コンパクトなキュー表示
@ktmage ktmage merged commit e40ab45 into master Mar 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant