fix(channels): preserve credentials on blank config saves#3270
Closed
just-cameron wants to merge 12 commits into
Closed
fix(channels): preserve credentials on blank config saves#3270just-cameron wants to merge 12 commits into
just-cameron wants to merge 12 commits into
Conversation
Fail closed when hydrated channel secret refs cannot be read, and treat blank token fields as unchanged so settings saves cannot wipe existing credentials. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
This was referenced Jul 8, 2026
Add reviewer-requested regression proof around Slack missing-ref hydration, custom secret merges, partial Slack updates, and blank existing-account starts so credential preservation cannot silently regress. Letta Code (agent-c2adbf5c-8419-4211-8cd8-3740db164974) 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Include schema-declared plugin secret fields in account credential storage so plugin config secrets are stripped, hydrated, preserved on missing refs, and deleted with the account. Letta Code (agent-c2adbf5c-8419-4211-8cd8-3740db164974) 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Hydrate and delete existing plugin secret refs even when the current plugin manifest or schema is unavailable, so credential-store cleanup does not depend only on metadata discovery. Letta Code (agent-c2adbf5c-8419-4211-8cd8-3740db164974) 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Consolidate credential validation and secret-key discovery so channel account flows preserve blank-secret behavior without duplicated invariants. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Preserve the split channel architecture while keeping credential refs, scoped hydration, delete cleanup, and file-mode safety intact after the local main merge. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Letta Code (agent-c2adbf5c-8419-4211-8cd8-3740db164974) Keep channel credential mutations account-scoped and surface keyring failures before user-facing operations report success, preventing failed writes from masquerading as durable configuration. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Letta Code (agent-c2adbf5c-8419-4211-8cd8-3740db164974) Make keyring-backed account upserts and deletes commit credential changes in the foreground with rollback so storage, cache, and sibling secrets do not diverge on partial failure. Delay live-account auxiliary cleanup until credential/account deletion has succeeded and cover the failure boundaries with regression tests. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
just-cameron
requested review from
4shub,
carenthomas,
christinatong01,
cpacker,
jnjpng and
kl2806
as code owners
July 13, 2026 22:03
Make account and secret mutations recoverable across live start/delete and route-reset failures so credentials are not corrupted when adjacent cleanup fails. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Letta Code (agent-c2adbf5c-8419-4211-8cd8-3740db164974) Prevent stale channel credential writes from overwriting newer metadata or secret updates by locking per-account mutation paths and requiring expected-current snapshots. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Letta Code (agent-c2adbf5c-8419-4211-8cd8-3740db164974) Preserve the credential repair while incorporating the latest channel policy and repository changes. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Letta Code (agent-c2adbf5c-8419-4211-8cd8-3740db164974) Snapshot target and pairing state before live account deletion cleanup so route, target, pairing, account, and secret state can be restored when target or pairing persistence fails. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Contributor
|
Closing this broad rewrite. It expanded from the original credential-loss report into mutation serialization, plugin-secret support, and transaction rollback across the channel subsystem, making it too large to review safely. We will replace it with a narrowly scoped fix proven against the original LET-9461 restart/hydration failure. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linear
Supersedes
Problem
Channel credential hydration and account saves could turn valid credentials or secure-store refs into persisted blanks. Failed, partial, or concurrent mutations could also leave account storage, keyring state, channel metadata, and routing out of sync.
Approach
Limits
Validation
bun run check— 12 checks passed.tsc --noEmit.👾 Generated with Letta Code