You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "chihumyum (via GitHub)" <gi...@apache.org> on 2026/08/22 19:14:10 UTC

[PR] refactor(desktop): extract goals as a feature slice [maka]

chihumyum opened a new pull request, #3531:
URL: https://github.com/apache/maka/pull/3531

   ## Summary
   
   - Move Goal read state, subscriptions, controls, dialog ownership, and indicator assembly behind a renderer feature boundary.
   - Isolate Desktop bridge access behind a narrow `GoalServices` adapter and provider; keep `AppShell` limited to Session context plus host, commands, and selectors.
   - Add fake services and focused lifecycle, adapter, model, and architecture-boundary coverage.
   
   Refs #3439
   
   ## Verification
   
   - `npm run lint`
   - `npm run format:check`
   - `npm run build`
   - `npm run typecheck`
   - `npm --workspace @maka/desktop run test:dist` — 1198 passed
   - `npx knip --workspace apps/desktop`
   - `npx knip --workspace packages/ui`
   - `npm --workspace @maka/desktop run build-storybook`
   - `npm --workspace @maka/desktop run smoke:storybook` — 166 stories passed
   - `npx playwright test --config e2e/playwright.config.ts` from `apps/desktop` — 50 passed, 1 skipped
   
   No screenshots are included because this changes no Goal copy, CSS, layout, IPC contract, or user-visible behavior.
   
   ## Review focus
   
   - Session-switch fencing for stale Goal reads.
   - Goal-change event filtering and subscription disposal.
   - Dialog ownership of the Session captured when it opens.
   - Per-Session pause/resume re-entry protection.
   
   ## AI use
   
   Select exactly one:
   
   - [ ] No generative tool made a substantive contribution
   - [x] Generative tooling made a substantive contribution
   
   Tool(s) and scope: Codex assisted with the feature extraction, implementation, tests, and verification.
   
   ## Checklist
   
   - [x] Tests cover the change and fail without it
   - [x] Lint, format, typecheck and the affected suites pass locally
   
   Does this PR entail a change in behavior?
   
   - [ ] Yes — described under Summary above
   - [x] No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] refactor(desktop): extract goals as a feature slice [maka]

Posted by "chihumyum (via GitHub)" <gi...@apache.org>.
chihumyum commented on PR #3531:
URL: https://github.com/apache/maka/pull/3531#issuecomment-5384930526

   Rebased onto current `upstream/main` (`729839ed8`) and resolved the GoalDialog conflict in `cfce73ee9`.
   
   The resolution preserves the newly merged reconnect reconciliation behavior: Goal arm outcomes still fence stale results, lock reconciled states, and prevent duplicate submission, while the bridge call remains behind the Goals service port. The reconciliation model and its tests now live inside the Goals feature boundary.
   
   Verified after the final rebase:
   - `npm run lint`
   - `npm run format:check`
   - `npm run astryx:surface-inventory`
   - `npm run build`
   - `npm run typecheck`
   - `npm --workspace @maka/desktop run test:dist` — 1255 passed
   - `npx knip --workspace apps/desktop`
   
   GitHub now reports the PR as mergeable. The new fork CI run is `action_required` and needs maintainer approval before jobs start.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] refactor(desktop): extract goals as a feature slice [maka]

Posted by "chihumyum (via GitHub)" <gi...@apache.org>.
chihumyum commented on PR #3531:
URL: https://github.com/apache/maka/pull/3531#issuecomment-5385230061

   Rechecked against the latest `upstream/main` (`047567c4b`). Main had advanced by five commits and the PR had become `DIRTY` solely because the generated Astryx inventory conflicted again.
   
   Rebased and regenerated the inventory in `0ed2c53c4`. Verification:
   - `npm run astryx:surface-inventory` — 204 files, 1 exclusion
   - `git diff --check upstream/main...HEAD`
   - merge-tree probe against current main — clean
   
   GitHub no longer reports a merge conflict. The current head workflow is [run 32630272181](https://github.com/apache/maka/actions/runs/32630272181), which is `action_required` with no jobs and needs maintainer approval to execute.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] refactor(desktop): extract goals as a feature slice [maka]

Posted by "chihumyum (via GitHub)" <gi...@apache.org>.
chihumyum commented on PR #3531:
URL: https://github.com/apache/maka/pull/3531#issuecomment-5382312896

   Fixed in `f9554a9af` by regenerating both checked-in Astryx surface inventory files.
   
   Local verification:
   - `npm run astryx:surface-inventory:write`
   - `npm run astryx:surface-inventory` — 203 files, 1 exclusion
   - `git diff --check`
   
   The new CI run is currently `action_required` with no jobs, so it needs maintainer approval before GitHub will execute the workflow.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] refactor(desktop): extract goals as a feature slice [maka]

Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han merged PR #3531:
URL: https://github.com/apache/maka/pull/3531


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org