Skip to content

Commit 62525ee

Browse files
jessedi0njesse.mahnken
authored andcommitted
fix(desktop): add macOS settings menu entry (anomalyco#26081)
Co-authored-by: jesse.mahnken <jesse.mahnken@tiefox.de> (cherry picked from commit 9b30ee2)
1 parent d3e90be commit 62525ee

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

.opencode/command/sync-upstream.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,19 @@ Workflow:
2727
- never drop local PRO/custom behavior just to make the sync easier
2828
- do not use destructive git commands
2929
9. After the batch is applied, run verification:
30-
- `bun typecheck` from `packages/opencode`
31-
- `bun run test:ci` from `packages/opencode`
32-
- if the batch touches SDK generation inputs or SDK package code, also run `./packages/sdk/js/script/build.ts` from repo root
30+
- always run `bun --cwd packages/opencode typecheck`
31+
- always run `bun --cwd packages/opencode test:ci`
32+
- always run `bun lint` from repo root
33+
- if the batch touches shared packages, cross-package contracts, schemas, or anything broad, also run `bun typecheck` from repo root
34+
- if the batch touches `packages/core`, also run `bun --cwd packages/core test:ci` and `bun --cwd packages/core typecheck`
35+
- if the batch touches `packages/ui`, also run `bun --cwd packages/ui test:ci` and `bun --cwd packages/ui typecheck`
36+
- if the batch touches `packages/app`, also run `bun --cwd packages/app test:ci`, `bun --cwd packages/app typecheck`, and `bun --cwd packages/app build`
37+
- if the batch touches frontend behavior, routes, UI components, or browser-facing contracts, also run `bun --cwd packages/app test:e2e:local`
38+
- if the batch touches `packages/sdk/js` or SDK generation inputs, also run `bun --cwd packages/sdk/js build`
39+
- if the batch touches `packages/plugin`, also run `bun --cwd packages/plugin build`
40+
- if the batch touches `packages/desktop`, also run `bun --cwd packages/desktop build`
41+
- if the batch touches storybook or design-system-facing files, also run `bun --cwd packages/storybook build`
42+
- if the batch touches CLI packaging/build pipeline code, also run `bun --cwd packages/opencode build`
3343
10. If verification fails, stop immediately. Do not push. Do not silently revert. Report:
3444
- which commits were applied
3545
- where it failed
@@ -46,6 +56,7 @@ Execution rules:
4656
- Do not create a final commit unless the git operation itself requires it and the batch is valid.
4757
- If no safe small batch can be identified, explain why and propose the next safest candidate commits.
4858
- Keep the response focused on: selected commits, conflict decisions, test results, and next batch recommendation.
59+
- Choose the verification set from the actual changed paths. Prefer more coverage when unsure.
4960
- Be extremely concise. Prefer fragments over prose.
5061
- Do not write long explanations, introductions, retrospectives, or motivational text.
5162
- Keep the final user-facing response under 8 short lines unless there is a blocker or test failure.

packages/desktop/src/main/menu.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ export function createMenu(deps: Deps) {
2323
enabled: UPDATER_ENABLED,
2424
click: () => deps.checkForUpdates(),
2525
},
26+
{
27+
label: "Settings",
28+
accelerator: "Cmd+,",
29+
click: () => deps.trigger("settings.open"),
30+
},
2631
{
2732
label: "Reload Webview",
2833
click: () => deps.reload(),

0 commit comments

Comments
 (0)