Skip to content

release: v1.0.2 — TUI sidebar version line, language-ask enforcement, OIDC trusted publishing - #4

Merged
mrzturn merged 3 commits into
mainfrom
release/v1.0.2
Sep 7, 2026
Merged

mrzturn merged 3 commits into
mainfrom
release/v1.0.2

Conversation

@mrzturn

@mrzturn mrzturn commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Summary

Release PR for v1.0.2. Merging publishes the version bump; creating the v1.0.2 GitHub release on main afterwards triggers the npm publish.

  • Version bump to 1.0.2 (package.json, regenerated src/version.ts)
  • Changelog — promote [Unreleased] to [1.0.2] (TUI sidebar version line + restart-needed tag) and move the language-preference ask enforcement entry from [1.0.1] into [1.0.2] (it ships in this release, not in the v1.0.1 tag)
  • Publish workflow switches to npm OIDC trusted publishing (.github/workflows/publish.yml):
    • id-token: write + environment: release-publish (required-reviewer approval gate)
    • node 22 → 24 (trusted publishing needs npm ≥ 11.5.1)
    • npm publish no longer consumes NPM_TOKEN; provenance is generated automatically

Release checklist (after merge)

  • npmjs.com → package Settings → Trusted Publisher: repo mrzturn/opencode-switchman, workflow publish.yml, environment release-publish, allowed action npm publish (post-2026-09-03 configs default to stage-only — must explicitly allow direct publish)
  • Environment release-publish → Deployment branches and tags → add tag pattern v* (release runs carry refs/tags/*; REST API cannot manage tag policies — UI only)
  • Approve the pending deployment on the publish run

Test plan

  • bun test — 421 pass
  • bun run typecheck — clean
  • bun run build — warning-free (CI gates on this)

… and a tool hard gate

1. Reset the per-session ask latch on every new user message so the directive re-surfaces each turn until .switchman/settings.json exists
2. Deny write/edit/bash/task with an ask-first error while unconfigured (reads stay open; shell/internal sessions exempt); a declined questionnaire waives gate+ask for that session
3. Push the ask directive as the first injected system part for main sessions instead of the tail of the protocol block
4. Extend tests (gate decision, marker detection, sandbox fixtures) and sync READMEs/CHANGELOG
…ending restart tag

- marquee row now renders the running version (local builds append the
  checked commit short SHA) and a green '→ v<latest>' / '→ origin/main'
  tag when the 24h-cached update check reports a newer release
  (/switchman-ignore suppresses it like the banner)
- blinking [RESTART NEEDED] now also covers installed-but-not-loaded
  upgrades: upgraded.flag this session or prod disk-version mismatch,
  merged with the shell-registration restartRequired tag
- new pure helpers in selfupdate.ts: versionBrief(), installedPluginVersion()
- docs: sidebar paragraph + What's New bullet in both READMEs, changelog
… OIDC trusted publishing (version bump and changelog)
@mrzturn
mrzturn merged commit bad37c8 into main Sep 7, 2026
3 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

Development

Successfully merging this pull request may close these issues.

1 participant