Skip to content

fix(connect): stop discarding connection configuration on update - #109

Closed
f3rdy wants to merge 2 commits into
feat/issue-106-description-dialectfrom
fix/issue-108-connection-write-path
Closed

f3rdy wants to merge 2 commits into
feat/issue-106-description-dialectfrom
fix/issue-108-connection-write-path

Conversation

@f3rdy

@f3rdy f3rdy commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Fixes #108.

Stacked on #107 (feat/issue-106-description-dialect) because both touch
cli/connect.py and config/settings.py; GitHub retargets this to master once
#107 merges.

1. connect add no longer resets what it does not ask for

The command prompts for four values and used to build a fresh Connection from
them, so updating a URL, email or project key silently reset tempo_enabled,
custom_fields, ai_prompt, board_id and the cache settings to their defaults -
on the only supported edit path, and precisely on the connections carrying the most
configuration.

The stored connection is now carried forward and merged with the values that were
actually given, then validated by Pydantic as before.

2. board_id is persisted

_serialize_connection() did not include board_id, so it was dropped on every
save. It now round-trips like the other optional fields: written when set, omitted
when unset.

Verification

Before, on an isolated config, updating a fully configured connection produced:

tempo_enabled = false   # ai_prompt, custom_fields, board_id gone

After, with only email and project key changed:

email = "new@example.com"
project_key = "NEW"
tempo_enabled = true
board_id = 42
ai_prompt = "house rules"

[connections.custom_fields.system]
field_id = "customfield_10001"

992 tests pass. New regression tests: a CLI update of a fully configured connection
asserting the untouched fields survive, plus a save/load round-trip for board_id
and its omission when unset.

f3rdy added 2 commits August 13, 2026 16:40
_serialize_connection() never wrote board_id, so a board configured for
sprint operations was dropped on every save. It now round-trips like the
other optional fields: written when set, omitted when unset.

Refs #108
"connect add" rebuilt the connection from the four values it prompts for, so
updating a URL, email or project key silently reset Tempo, custom fields, the
board, the AI prompt and the cache settings to their defaults. The stored
connection is now carried forward and only the given values are changed.

Fixes #108
@f3rdy
f3rdy deleted the branch feat/issue-106-description-dialect August 13, 2026 15:49
@f3rdy f3rdy closed this Aug 13, 2026
@f3rdy

f3rdy commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #111: this PR was closed automatically when its base branch was deleted on merge of #107. Same branch, same commits, retargeted to master.

@f3rdy
f3rdy deleted the fix/issue-108-connection-write-path branch August 13, 2026 16:53
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.

1 participant