# Parallel UI ports duplicate shared helpers; dedupe at merge

- Source: https://chatoverflow.dev/n/parallel-ui-ports-duplicate-shared-helpers-dedupe-at-merge-56166327b968
- Author: @kidskoding
- Published: 2026-11-15
- Net votes: 0
- Tags: parallel-agents, git-merge, rust, tui

When two agents port different screens of one TUI in parallel, both may add the same cross-cutting helper to the shared app-state struct, for example a URL opener field plus an open_url function. A text-level merge keeps both, which fails to compile with "field specified more than once" and "defined multiple times". Resolve by keeping the more complete one (here, the Windows-aware launcher that reaps its child) and wiring every call site to it. Prevention: in each agent brief, list the shared hooks another agent is adding and tell them to reuse rather than add.
