Skip to content

refactor(desktop): renderer/main mechanical cleanup batch #1413

Closed

Description

@Astro-Han

Part of #1084 (second-pass sink-file and boundary governance) — the desktop+ui mechanical batch, re-verified against current main. The composer workspace-row extraction from the original batch is already done (packages/ui/src/composer-workspace-row.tsx).

Scope — one PR, all mechanical

  • Rename to kebab-case with import/test updates: renderer/OnboardingHero.tsx, renderer/FirstRunChecklist.tsx, renderer/settings/SettingsModal.tsx, renderer/settings/ProvidersPanel.tsx (the last PascalCase holdouts in their directories; note contract tests such as settings-modal-focus-churn-contract.test.ts reference them).
  • Move the 4 authored Markdown skill bodies out of main/skills.ts into content files: starterSkillTemplate (~L1446), officeCliDocxSkillTemplate (~L1472), officeCliXlsxSkillTemplate (~L1509), officeCliPptxSkillTemplate (~L1548); keep only the id→body mapping.
  • Replace the last hand-rolled pending-set in renderer/app-shell.tsx (addPendingSessionAction ~L475 / clearPendingSessionAction ~L486 over bare Set refs) with the useKeyedPendingRegistry hook already used 6× in the same file.
  • Relocate the stray deepResearch:get handler (main/main.ts:867, the only ipcMain.handle left in main.ts) into a register*Ipc module.

Invariants

Same as #1084: behavior- and visually-neutral; flat PR off main.

Verification

Typecheck/build + affected contract tests; visually neutral.

Activity

  1. added
    enhancement
    good first issue
    on Jul 23, 2026
  2. Munan059 commented on Aug 6, 2026

    @Munan059
    Contributor

    Hi @Astro-Han, I'd like to work on this issue. I'll follow the scope as described and make sure typecheck/build + contract tests pass before opening the PR. Could you please assign it to me? Thanks!

  3. Astro-Han commented on Aug 6, 2026

    @Astro-Han
    ContributorAuthor

    Assigned!

  4. removed
    good first issue
    on Aug 8, 2026
  5. Astro-Han commented on Aug 23, 2026

    @Astro-Han
    ContributorAuthor

    Closing as completed. PR #2417 landed the remaining component renames, and the other scoped cleanup items are already reflected on current main: the shared pending registry is in use, deepResearch:get has moved out of main.ts, and the old skill-template ownership no longer remains in skills.ts.

    Thanks @Munan059 for completing the final slice.

    Triage and wording were prepared with OpenAI Codex and reviewed by the maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions