Skip to content

refactor(desktop): extract goal-draft collaboration-mode helpers#3802

Merged
esengine merged 1 commit into
main-v2from
refactor/goal-draft-helpers
Jun 10, 2026
Merged

refactor(desktop): extract goal-draft collaboration-mode helpers#3802
esengine merged 1 commit into
main-v2from
refactor/goal-draft-helpers

Conversation

@esengine

Copy link
Copy Markdown
Owner

The goal-draft collaboration-mode decision was inlined at seven call
sites in App.tsx (active tab, tab list, controller sync, model switch).
This pulls the rule into src/lib/goalDraftMode.ts as five small pure
functions and adds unit coverage in goal-draft-mode.test.ts.

No behavior change — the helpers are equivalent to the inline form
merged in #3795. The point is to keep the decision in one place and make
it testable.

The helper extraction and tests were originally proposed by @SivanCola
in #3794 (co-authored here). The handoff fix itself already landed
inline via #3795, so this PR carries only the refactor + tests.

The goal-draft decision was inlined at seven App.tsx call sites (active
tab, tab list, controller sync, model switch). Move it into
src/lib/goalDraftMode.ts so the rule lives in one place and is unit
tested; no behavior change from the inline form merged in #3795.

Co-authored-by: SivanCola <32437197+SivanCola@users.noreply.github.com>
@esengine esengine requested a review from SivanCola as a code owner June 10, 2026 06:45
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) and removed v2 Go rewrite (1.x) — main-v2 branch, active development labels Jun 10, 2026
@esengine esengine merged commit dd6e349 into main-v2 Jun 10, 2026
14 checks passed
@esengine esengine deleted the refactor/goal-draft-helpers branch June 10, 2026 06:49
SuMuxi66 pushed a commit to SuMuxi66/DeepSeek-Reasonix that referenced this pull request Jun 10, 2026
…ngine#3802)

The goal-draft decision was inlined at seven App.tsx call sites (active
tab, tab list, controller sync, model switch). Move it into
src/lib/goalDraftMode.ts so the rule lives in one place and is unit
tested; no behavior change from the inline form merged in esengine#3795.

Co-authored-by: reasonix <reasonix@deepseek.com>
Co-authored-by: SivanCola <32437197+SivanCola@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant