Repository navigation
fix(line): clear default access token when removing account - #118055
Conversation
|
Codex review: passed. Reviewed August 2, 2026, 4:31 PM ET / 20:31 UTC. ClawSweeper reviewWhat this changesThe branch makes LINE default-account deletion clear the root access token and display name along with existing credential fields, with a regression test that retains a named account. Merge readinessKeep this PR open: current main still leaves LINE's root access token outside the deletion field list, while this focused patch repairs the owner-level adapter and preserves named accounts. The existing review cycle's display-name finding is addressed, and no new correctness blocker was found. Priority: P2 Review scores
Verification
How this fits togetherThe channel-removal command delegates configuration mutation to each channel plugin's adapter. LINE's adapter tells the shared delete flow which root fields represent the default account, and the resulting configuration feeds account discovery and status reporting. flowchart LR
Command[Channel removal command] --> Delete[Shared account deletion]
Delete --> Adapter[LINE cleanup field list]
Adapter --> Config[Updated channel configuration]
Config --> Accounts[Account discovery]
Accounts --> Status[Channel list and status output]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +51. Total +51 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Merge the focused LINE adapter repair after the normal exact-head merge gates; retain the regression test as the channel-specific contract for deleting a default account alongside named accounts. Do we have a high-confidence way to reproduce the issue? Yes, from source: on current main, deleting a default LINE account with named accounts invokes the shared cleanup list, which omits the root access token that account discovery uses to retain the default account. This review did not execute the reporter's runtime script. Is this the best way to solve the issue? Yes. The LINE adapter owns the declaration of root fields representing its default account, while the shared helper intentionally applies only that declaration; extending the list is narrower and safer than adding LINE-specific behavior to shared code. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d4b96d98cfe8. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
93eb482 to
4948389
Compare
|
🦞🧹
This is fix-only; I will not merge this PR. Re-review progress:
|
|
Merged via squash.
|
* origin/main: (57 commits) fix(media): fall back when providers return empty output (#118660) fix(nextcloud-talk): allow bounded parallel room deliveries (#118692) test(state): reuse current agent database fixture (#118677) fix(scripts): bound check-file-utils git lookup (#111582) fix(slack): scope interactive conversation bindings safely (#118662) fix(agents): avoid false compaction after mid-turn precheck (#117963) fix(ui): show original filename on chat history attachment cards instead of managed UUID suffix (#118628) fix(whatsapp): preserve terminal retry exhaustion lifecycle (#118659) fix(doctor): audit every agent workspace (#111840) fix(release): skip unavailable Buzz on frozen candidates (#118670) fix(ui): surface onboarding and pairing clipboard failures (#118651) fix(config): stop plugin schemas rejecting the channel key core writes (#117992) test(memory): isolate wiki plugin fixtures (#118654) fix(line): clear default access token when removing account (#118055) feat: enable rich setup controls in custodian chat (#114631) test(ui): reuse responsive browser fixtures (#118655) chore(tui): stabilize queued-turn admission in Gateway PTY test (#118638) fix(xai): classify exhausted credits as billing (#118615) fix(otel): fail closed when configured TLS material is invalid (#118648) fix(cli): preserve gateway request errors in health JSON (#118645) ...
…#118055) * fix(line): clear default access token when removing account * fix(line): clear default access token when removing account --------- Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
* origin/main: (57 commits) fix(media): fall back when providers return empty output (openclaw#118660) fix(nextcloud-talk): allow bounded parallel room deliveries (openclaw#118692) test(state): reuse current agent database fixture (openclaw#118677) fix(scripts): bound check-file-utils git lookup (openclaw#111582) fix(slack): scope interactive conversation bindings safely (openclaw#118662) fix(agents): avoid false compaction after mid-turn precheck (openclaw#117963) fix(ui): show original filename on chat history attachment cards instead of managed UUID suffix (openclaw#118628) fix(whatsapp): preserve terminal retry exhaustion lifecycle (openclaw#118659) fix(doctor): audit every agent workspace (openclaw#111840) fix(release): skip unavailable Buzz on frozen candidates (openclaw#118670) fix(ui): surface onboarding and pairing clipboard failures (openclaw#118651) fix(config): stop plugin schemas rejecting the channel key core writes (openclaw#117992) test(memory): isolate wiki plugin fixtures (openclaw#118654) fix(line): clear default access token when removing account (openclaw#118055) feat: enable rich setup controls in custodian chat (openclaw#114631) test(ui): reuse responsive browser fixtures (openclaw#118655) chore(tui): stabilize queued-turn admission in Gateway PTY test (openclaw#118638) fix(xai): classify exhausted credits as billing (openclaw#118615) fix(otel): fail closed when configured TLS material is invalid (openclaw#118648) fix(cli): preserve gateway request errors in health JSON (openclaw#118645) ...
Summary
Fixes #118039.
Deleting LINE's default account now clears its root
channelAccessTokenas well as the existing secret and file-backed credential fields. This preventschannels listand status from rediscovering a deleted default account as a broken entry while preserving named LINE accounts.Validation
pnpm check:changed.Credit: reported by @edenfunf in the linked issue.