You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b9aac8a
Browse filesBrowse the repository at this point in the historyBrowse files
Bare `KEY` reads the value from the environment variable of that name and avoids placing the secret in shell history. Use `KEY=VALUE` only when the user explicitly accepts that exposure.
@@ -143,14 +142,9 @@ must match. For a tunnel to `api.example.com:8443`, send
143
142
port and is rejected. An absolute-form request target must use the same
144
143
authority.
145
144
146
-
Profile-backed provider policy composition is controlled by the gateway-global
Prefer `--secret-material-env KEY[=ENVVAR]` for secret refresh material. `--material KEY=VALUE` is for non-secret material; `--secret-material-key` marks supplied material keys as secret.
Copy file name to clipboardExpand all lines: .agents/skills/tui-development/SKILL.md
+8-13Lines changed: 8 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,8 @@ Gateway (discovered via openshell_bootstrap::list_gateways())
43
43
44
44
-**Gateways** are discovered from on-disk config via `openshell_bootstrap::list_gateways()`. Each gateway has a name, endpoint, local/remote flag, and source label.
45
45
-**Workspaces** are fetched via `ListWorkspaces`. The user cycles through workspaces with `[w]`, or views all workspaces at once. The current workspace scopes provider and sandbox lists.
46
-
-**Provider Profiles** are fetched per-workspace via `ListProviderProfiles` when `providers_v2_enabled` is true. Profiles are cached in a `ProviderProfileCache` keyed by `(workspace, profile_id)` and matched to providers by type. They provide category, credential metadata, endpoint/binary counts, and inference capability.
47
-
-**Providers** are fetched via `ListProviders` scoped to the current workspace. Each `ProviderListEntry` pairs a provider with its optional cached profile. When `providers_v2_enabled` is true, CRUD operations are read-only in the TUI; when false, the TUI supports create/update/delete.
46
+
-**Provider Profiles** are fetched per-workspace via `ListProviderProfiles`. Profiles are cached in a `ProviderProfileCache` keyed by `(workspace, profile_id)` and matched to providers by type. They provide category, credential metadata, endpoint/binary counts, and inference capability.
47
+
-**Providers** are fetched via `ListProviders` scoped to the current workspace. Each `ProviderListEntry` pairs a provider with its optional cached profile. The TUI supports profile-backed create, update, and delete operations.
48
48
-**Global Settings** are fetched via `GetGatewayConfig` and displayed in a tabbed pane alongside providers on the dashboard. Each setting is a registered key with a typed value (bool/int/string). Platform-admin access is required; `PermissionDenied` disables the pane.
49
49
-**Sandboxes** belong to the active gateway and workspace. Fetched via `ListSandboxes` with a periodic tick refresh.
50
50
-**Sandbox Settings** are effective settings returned by `GetSandboxConfig`, each with a scope (sandbox, global, or unset). Globally-managed settings are blocked from sandbox-level edits.
@@ -170,7 +170,7 @@ Phase 2: WatchSandbox(follow_logs: true) → live tail → send via Event::L
170
170
171
171
**Sandboxes**: Fetched via `ListSandboxes` on a 2-second tick, scoped to the current workspace (or all workspaces).
172
172
173
-
**Providers**: Fetched via `ListProviders` on each tick. When `providers_v2_enabled` is true, provider profiles are also fetched per-workspace via `ListProviderProfiles` and cached in a `ProviderProfileCache` keyed by `(workspace, profile_id)`.
173
+
**Providers**: Fetched via `ListProviders` on each tick. Provider profiles are fetched per-workspace via `ListProviderProfiles` and cached in a `ProviderProfileCache` keyed by `(workspace, profile_id)`.
174
174
175
175
**Settings**: Global settings are fetched via `GetGatewayConfig` on each tick. Sandbox settings are fetched alongside the sandbox policy via `GetSandboxConfig` and refreshed on each tick when viewing a sandbox.
176
176
@@ -321,7 +321,7 @@ TUI actions should parallel `openshell` CLI commands so users have familiar ment
321
321
|`openshell sandbox connect`|`[s]` on sandbox policy view to launch SSH shell |
322
322
|`openshell logs <name>`|`[l]` on sandbox detail to open log viewer |
323
323
|`openshell provider list`| Provider table on Dashboard (middle pane) |
324
-
|`openshell provider create`|`[c]` on provider panel (when not providers_v2) |
324
+
|`openshell provider create`|`[c]` on provider panel |
325
325
|`openshell status`| Status in title bar + gateway list |
326
326
327
327
When adding new TUI features, check what the CLI offers and maintain consistency.
@@ -383,10 +383,7 @@ All actions are accessible via keyboard shortcuts displayed in the nav bar. The
@@ -526,17 +523,15 @@ The connect timeout for gateway switching is 10 seconds with HTTP/2 keepalive at
526
523
4. On success:
527
524
-`app.client` is replaced with a new intercepted client
528
525
-`reset_sandbox_state()` clears all sandbox/log/draft/policy data
529
-
-`fetch_providers_v2_setting()` probes the new gateway's `GetGatewayConfig` to determine whether providers_v2 mode is enabled, so provider CRUD controls render correctly
530
526
-`refresh_data()` runs the full capability refresh sequence: `refresh_health` → `refresh_global_settings` → `refresh_workspaces` → `refresh_providers` → `refresh_sandboxes`
0 commit comments