GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(app): share session index and project actions by joe-ieta · Pull Request #62845 · anomalyco/opencode

refactor(app): share session index and project actions #62845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
joe-ieta wants to merge 10 commits into anomalyco:dev from joe-ieta:session-index

Uh oh!

There was an error while loading. Please reload this page.

Closed

refactor(app): share session index and project actions #62845

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit Hold shift + click to select a range
516aa29
refactor(app): share the bounded session index
joe-ieta Nov 9, 2026
1cf53f4
refactor(app): share Home project actions and menus
joe-ieta Nov 9, 2026
6613ed4
chore(app): satisfy project actions lint rules
joe-ieta Nov 9, 2026
739ac31
refactor(app): keep the session index move self-contained
joe-ieta Nov 9, 2026
8c30804
chore(app): sync project actions with upstream dev
joe-ieta Nov 15, 2026
b69665d
chore(app): sync session index with upstream dev
joe-ieta Nov 19, 2026
1710919
chore(app): sync project actions with upstream dev
joe-ieta Nov 19, 2026
233ed96
refactor(app): consolidate shared navigation modules
joe-ieta Nov 19, 2026
cf0814f
chore: sync consolidated refactor with dev
joe-ieta Nov 19, 2026
b696d7a
refactor(app): require queued project selection
joe-ieta Nov 19, 2026
File filter
Filter by extension


Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  

Uh oh!

There was an error while loading. Please reload this page.

Prev Previous commit
Next Next commit
chore(app): sync project actions with upstream dev
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@joe-ieta
joe-ieta committed Nov 19, 2026
commit 1710919b505c5daabf0c937ffc1ee3d208513df9

There are no files selected for viewing

40 changes: 40 additions & 0 deletions 40 .github/actions/prefetch-ghostty/action.yml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Prefetch Ghostty dependencies
description: Prepare the pinned source and Zig packages for process-daemon's native build
runs:
using: composite
steps:
- name: Check out pinned Ghostty source
id: pins
shell: bash
env:
GHOSTTY_SOURCE_DIR: ${{ runner.temp }}/ghostty
ZIG_GLOBAL_CACHE_DIR: ${{ github.workspace }}/.zig-cache
run: |
revision=$(git show HEAD:packages/process-daemon/ghostty-revision)
git init --quiet "$GHOSTTY_SOURCE_DIR"
git -C "$GHOSTTY_SOURCE_DIR" fetch --depth=1 https://github.com/ghostty-org/ghostty.git "$revision"
git -C "$GHOSTTY_SOURCE_DIR" -c core.longpaths=true checkout --detach "$revision"
echo "revision=$revision" >> "$GITHUB_OUTPUT"
echo "zig=$(zig version)" >> "$GITHUB_OUTPUT"
echo "GHOSTTY_SOURCE_DIR=$GHOSTTY_SOURCE_DIR" >> "$GITHUB_ENV"
echo "ZIG_GLOBAL_CACHE_DIR=$ZIG_GLOBAL_CACHE_DIR" >> "$GITHUB_ENV"

# Zig 0.16 stores portable, content-addressed source tarballs in p/.
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: .zig-cache/p
key: ghostty-packages-${{ steps.pins.outputs.zig }}-${{ steps.pins.outputs.revision }}
enableCrossOsArchive: true

- name: Fetch Zig packages
shell: bash
working-directory: ${{ env.GHOSTTY_SOURCE_DIR }}
run: |
for attempt in 1 2 3 4; do
echo "zig build --fetch=all (attempt $attempt/4)"
if zig build --fetch=all; then exit 0; fi
if [[ $attempt == 4 ]]; then exit 1; fi
delay=$((5 * 2 ** (attempt - 1)))
echo "Retrying in ${delay}s"
sleep "$delay"
done
36 changes: 34 additions & 2 deletions 36 .github/workflows/check-process-daemon.yml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ on:
pull_request:
paths:
- packages/process-daemon/**
- .github/actions/prefetch-ghostty/**
- .github/workflows/check-process-daemon.yml
push:
branches: [dev]
paths:
- packages/process-daemon/**
- .github/actions/prefetch-ghostty/**
- .github/workflows/check-process-daemon.yml
workflow_dispatch:

Expand Down Expand Up @@ -59,6 +61,8 @@ jobs:
- uses: mlugg/setup-zig@8d6198c65fb0feaa111df26e6b467fea8345e46f # v2.0.5
with:
version: 0.16.0
use-cache: false
- uses: ./.github/actions/prefetch-ghostty
- name: Install Rust
run: rustup toolchain install 1.90.0 --profile minimal --component rustfmt --component clippy
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2
Expand All @@ -79,7 +83,7 @@ jobs:
windows:
name: Windows (${{ matrix.arch }})
runs-on: ${{ matrix.runner }}
timeout-minutes: 30
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -109,7 +113,7 @@ jobs:
if: matrix.arch == 'x64'
with:
version: 0.16.0
cache-key: ${{ matrix.target }}
use-cache: false
# Zig 0.16 crashes when building Ghostty on the native ARM64 host.
# Use x64-hosted compilers on this ARM64 runner, but execute ARM64 tests natively.
- name: Install x64 Zig for ARM64 cross-compilation
Expand All @@ -130,6 +134,33 @@ jobs:
$old = '@ptrCast(try si.loadNtdllProc(@tagName(proc)))'
if (!$source.Contains($old)) { throw 'Zig alignment workaround no longer matches; re-evaluate it' }
[System.IO.File]::WriteAllText($file, $source.Replace($old, '@ptrCast(@alignCast(try si.loadNtdllProc(@tagName(proc))))'))
- name: Pin MSVC 14.51 for Zig's Clang 21
timeout-minutes: 20
run: |
$installer = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer"
$vs = & "$installer\vswhere.exe" -latest -products * -property installationPath
$tools = "$vs\VC\Tools\MSVC"
$arch = '${{ matrix.arch }}'
$hasRuntimes = {
(Test-Path "$($_.FullName)\lib\x64\vcruntime.lib") -and
(Test-Path "$($_.FullName)\lib\$arch\vcruntime.lib")
}
if (!(Get-ChildItem $tools -Directory -Filter '14.51.*' | Where-Object $hasRuntimes)) {
$components = '--add Microsoft.VisualStudio.Component.VC.14.51.x86.x64'
if ($arch -eq 'arm64') { $components += ' --add Microsoft.VisualStudio.Component.VC.14.51.ARM64' }
$setup = Start-Process "$installer\setup.exe" -ArgumentList "modify --installPath `"$vs`" $components --quiet --norestart" -Wait -PassThru
if ($setup.ExitCode -notin 0, 3010) { throw "VS installer exited with $($setup.ExitCode)" }
Write-Output "MSVC 14.51 installer exited with $($setup.ExitCode) for $arch"
}
$toolset = Get-ChildItem $tools -Directory -Filter '14.51.*' |
Where-Object $hasRuntimes |
Sort-Object { [version]$_.Name } -Descending | Select-Object -First 1
if (!$toolset) { throw "Missing MSVC 14.51 for $arch" }
# Zig reads this file for both host and target tools on the disposable runner.
Set-Content "$vs\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt" $toolset.Name -Encoding ascii
$libc = zig libc
$libc
if ($LASTEXITCODE -ne 0 -or $libc -inotcontains "sys_include_dir=$($toolset.FullName)\include") { throw 'Zig selected unexpected MSVC headers' }
- name: Install Rust toolchain and target
run: rustup toolchain install $env:RUSTUP_TOOLCHAIN --force-non-host --profile minimal --component rustfmt --component clippy --target $env:CARGO_BUILD_TARGET
- name: Verify runner and compiler architecture
Expand All @@ -145,6 +176,7 @@ jobs:
if ($compiler -notcontains 'host: x86_64-pc-windows-msvc') { throw 'Unexpected Rust compiler host' }
Write-Output "Executable target: $env:CARGO_BUILD_TARGET"
zig version
- uses: ./.github/actions/prefetch-ghostty
# No cache-on-failure: a timed-out run once saved a partial cache that broke re-runs.
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2
with:
Expand Down
37 changes: 35 additions & 2 deletions 37 .github/workflows/release-process-daemon.yml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ on:
- "process-daemon-v*"
pull_request:
paths:
- .github/actions/prefetch-ghostty/**
- .github/workflows/release-process-daemon.yml
- packages/process-daemon/build.rs
- packages/process-daemon/ghostty-revision
- packages/process-daemon/npm/**
- packages/process-daemon/script/npm-packages.mjs
workflow_dispatch:
Expand Down Expand Up @@ -39,6 +41,8 @@ jobs:
- uses: mlugg/setup-zig@8d6198c65fb0feaa111df26e6b467fea8345e46f # v2.0.5
with:
version: ${{ env.ZIG_VERSION }}
use-cache: false
- uses: ./.github/actions/prefetch-ghostty
- name: Configure baseline Zig builds
run: |
chmod +x "$GITHUB_WORKSPACE/packages/process-daemon/script/release-bin/zig"
Expand Down Expand Up @@ -94,7 +98,8 @@ jobs:
- uses: mlugg/setup-zig@8d6198c65fb0feaa111df26e6b467fea8345e46f # v2.0.5
with:
version: ${{ env.ZIG_VERSION }}
cache-key: ${{ matrix.target }}
use-cache: false
- uses: ./.github/actions/prefetch-ghostty
- name: Configure baseline Zig builds
run: |
chmod +x "$GITHUB_WORKSPACE/packages/process-daemon/script/release-bin/zig"
Expand Down Expand Up @@ -187,7 +192,7 @@ jobs:
if: matrix.arch == 'x64'
with:
version: ${{ env.ZIG_VERSION }}
cache-key: release-${{ matrix.target }}
use-cache: false
# Zig 0.16 crashes when building Ghostty on the native ARM64 host, so use
# the x64-hosted compiler there (matching check-process-daemon.yml).
- name: Install x64 Zig for ARM64 cross-compilation
Expand All @@ -206,8 +211,36 @@ jobs:
$old = '@ptrCast(try si.loadNtdllProc(@tagName(proc)))'
if (!$source.Contains($old)) { throw 'Zig alignment workaround no longer matches; re-evaluate it' }
[System.IO.File]::WriteAllText($file, $source.Replace($old, '@ptrCast(@alignCast(try si.loadNtdllProc(@tagName(proc))))'))
- name: Pin MSVC 14.51 for Zig's Clang 21
timeout-minutes: 20
run: |
$installer = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer"
$vs = & "$installer\vswhere.exe" -latest -products * -property installationPath
$tools = "$vs\VC\Tools\MSVC"
$arch = '${{ matrix.arch }}'
$hasRuntimes = {
(Test-Path "$($_.FullName)\lib\x64\vcruntime.lib") -and
(Test-Path "$($_.FullName)\lib\$arch\vcruntime.lib")
}
if (!(Get-ChildItem $tools -Directory -Filter '14.51.*' | Where-Object $hasRuntimes)) {
$components = '--add Microsoft.VisualStudio.Component.VC.14.51.x86.x64'
if ($arch -eq 'arm64') { $components += ' --add Microsoft.VisualStudio.Component.VC.14.51.ARM64' }
$setup = Start-Process "$installer\setup.exe" -ArgumentList "modify --installPath `"$vs`" $components --quiet --norestart" -Wait -PassThru
if ($setup.ExitCode -notin 0, 3010) { throw "VS installer exited with $($setup.ExitCode)" }
Write-Output "MSVC 14.51 installer exited with $($setup.ExitCode) for $arch"
}
$toolset = Get-ChildItem $tools -Directory -Filter '14.51.*' |
Where-Object $hasRuntimes |
Sort-Object { [version]$_.Name } -Descending | Select-Object -First 1
if (!$toolset) { throw "Missing MSVC 14.51 for $arch" }
# Zig reads this file for both host and target tools on the disposable runner.
Set-Content "$vs\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt" $toolset.Name -Encoding ascii
$libc = zig libc
$libc
if ($LASTEXITCODE -ne 0 -or $libc -inotcontains "sys_include_dir=$($toolset.FullName)\include") { throw 'Zig selected unexpected MSVC headers' }
- name: Install Rust toolchain and target
run: rustup toolchain install $env:RUSTUP_TOOLCHAIN --force-non-host --profile minimal --target $env:CARGO_BUILD_TARGET
- uses: ./.github/actions/prefetch-ghostty
- name: Build
run: cargo build --locked --release
- name: Smoke test
Expand Down
34 changes: 34 additions & 0 deletions 34 .oxlintrc.json
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,40 @@
]
},
"overrides": [
{
"files": ["packages/ai/src/**"],
"rules": {
"no-restricted-globals": [
"error",
{
"name": "Reflect",
"message": "Use typed property access or direct invocation. Suppress this rule only for genuine reflection."
},
{
"name": "fetch",
"message": "Send HTTP through RequestExecutor, which applies executor-wide and scoped middleware (HTTP hooks). A request sent any other way skips them."
}
],
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "effect/http",
"importNames": ["HttpClient", "FetchHttpClient"],
"message": "Send HTTP through RequestExecutor, which applies executor-wide and scoped middleware (HTTP hooks). Only route/executor.ts holds the HTTP client."
}
]
}
]
}
},
{
"files": ["packages/ai/src/route/executor.ts"],
"rules": {
"no-restricted-imports": "off"
}
},
{
"files": [
"packages/app/**",
Expand Down
7 changes: 3 additions & 4 deletions 7 AGENTS.md
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ const table = sqliteTable("session", {

- When you open a PR, decide whether the change needs a flag: new user-visible behavior, risky core changes, and anything not ready to release get one; fixes, refactors, docs and tests do not.
- Gate risky behavior, or behavior that lands over several PRs, with a key and a description in `packages/schema/src/config/flag.ts`, and read it with `Flag.enabled("<key>")` from `@opencode/core/flag`.
- Flags are on in local and dev builds and off in releases; `experimental.<key>` in config and `OPENCODE_FLAGS="key,-other"` override that.
- Say in the PR body which flag guards the change. To try every flag at once, use `OPENCODE_FLAGS=all` or `experimental.all_flags: true`; a `-<key>` opt-out or `experimental.<key>: false` still wins, and neither `all` nor `all_flags` is a flag key.
- Flags default to on in local and dev builds and off in releases, except `optInOnly` flags (such as `todo`), which require an explicit `OPENCODE_FLAGS=<key>` or `experimental.<key>: true` in every build.
- Say in the PR body which flag guards the change. The reserved switches `OPENCODE_FLAGS=all` and `experimental.all_flags: true` skip opt-in-only flags; use `all,-<key>` or `experimental.<key>: false` to opt out within the respective source.
- Ship a feature by deleting its flag and the checks that read it.

## Testing
Expand All @@ -202,8 +202,7 @@ const table = sqliteTable("session", {

## Plugin Loading

- Plugins load asynchronously. Server handlers never wait for them (`Plugin.awaitActivation`), never retry until something appears, and never turn slow plugins into a timeout or 503. This applies to reads and to actions such as `rpc.call` and `vcs.init`.
- Temporary exception: endpoints that list or use providers managed policy can deny (`model.list`, `model.default`, `provider.list`, `generate.*`, `voice.*` and `websearch.query`) wait through `awaitPlugins` in `packages/server/src/location.ts`, because policy is applied by the last plugin to activate and is missing until then. Don't add new waits; this goes away once a plugin batch becomes visible only when it ends.
- Plugins load asynchronously. Server handlers never wait for them (`Plugin.awaitActivation`), never retry until something appears, and never turn slow plugins into a timeout or 503. This applies to reads and to actions such as `generate.*`, `rpc.call`, `vcs.init` and `websearch.query`.
- The server answers with what is loaded now: lists may be empty or partial on a cold Location, and an action whose model, provider or RPC hasn't loaded yet fails with not-found. That is expected, not a bug to fix on the server.
- Clients are responsible for making sure what they need is loaded before they call. Long-lived clients refresh on the matching `*.updated` event (`model.updated`, `agent.updated`, `skill.updated`, `integration.updated`, `plugin.updated`, ...). One-shot clients (CLI commands, ACP, SDK callers) wait on their side, for example by polling `plugin.list` or the entry they need. See `packages/cli/src/services/plugin-startup.ts`.
- Running the hooks that are registered and waiting for their result is fine (for example `hooks.trigger("session", "http.request", ...)`). What is not allowed is waiting for plugins to load first: if the plugin that adds a hook hasn't loaded yet, the call runs without that hook.
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

You are viewing a condensed version of this merge commit. You can view the full changes here.
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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.