Skip to content

fix: preserve worker count from pasted link - #35

Merged
luminescq merged 1 commit into
luminescq:mainfrom
mrddt-tech:fix/qwdtt-link-worker-count
Oct 5, 2026
Merged

luminescq merged 1 commit into
luminescq:mainfrom
mrddt-tech:fix/qwdtt-link-worker-count

Conversation

@mrddt-tech

Copy link
Copy Markdown
Contributor

Problem

Pasting a qwdtt configuration link with a workers value silently replaced it with the hash-derived default in Add Server.

Root cause

The link parser returned WdttLink.workers, but AddServer.applyLink ignored that value when initialising the power control.

Implementation

Initialise the control from the parsed worker count and use the existing hash-derived value only when the link omits it.

Tests

  • cd frontend && npm test -- --run
  • go test ./...
  • Windows production build

Observed behavior

Manually tested on Windows 10: a pasted qwdtt link retains its supplied worker count in the Add Server flow.

Trade-offs

This intentionally changes neither qwdtt URL parsing nor the existing slider constraints.

@mrddt-tech mrddt-tech changed the title fix(qwdtt): preserve linked worker count fix: preserve worker count from pasted link Sep 7, 2026
@mrddt-tech
mrddt-tech marked this pull request as ready for review September 7, 2026 13:35
@luminescq
luminescq merged commit 457a5dc into luminescq:main Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants