Skip to content
This repository was archived by the owner on Sep 4, 2026. It is now read-only.
This repository was archived by the owner on Sep 4, 2026. It is now read-only.

Cleanup: dead IPC commands, unfinished run rows, duplicated helpers #241

Description

@ElbertePlinio

From the 2026-07-19 complementary swarm review (read-only, checked against #220 territory — no overlap).

P1 — dead-but-registered IPC + open-forever run rows

  • settings_get/settings_upsert/agent_run_finish are registered but have zero call sites (src/lib/db.ts:178-181,200-206; src-tauri/src/lib.rs:308-309,318; db_commands.rs:265,273,328). Consequence: recordForgeDispatch (src/lib/runRecord.ts:51) inserts agent_run_log rows with finishedAt: null that are never finished. Decide: either call agent_run_finish in the dispatch completion path (one line) or delete all three commands + finish_agent_run (crates/pickforge-core/src/db/mod.rs:1417-1427).

P1 — performance

  • LogcatView issues one IPC invoke per log line. Batch appends.

P2 — simplify

  • errorText helper duplicated 13× (agentChat.ts:259, operator.ts:420, voiceDock.ts:53, orchestra.ts:238, remoteAttach.ts:33, + ~8 inline). One src/lib/errors.ts, mechanical replacement.
  • waitForBootedSerial/waitForBootedSimulator are the same polling function with different predicates (src/stores/runLaunch.ts:149-181). Collapse to waitForDevice(match, epoch).
  • remoteHostRevokeClient wired through IPC but no UI caller (src/lib/remoteHost.ts:73, remote_commands.rs:130, lib.rs:245) — there is currently no way to revoke a paired remote client. Decision needed: build the UI or delete the path.

Validation

  • bun run build; unit tests for runLaunch/db; cargo check workspace.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions