Skip to content

fix(line): clear default access token when removing account - #118055

Merged
steipete merged 2 commits into
mainfrom
clawsweeper/issue-openclaw-openclaw-118039
Aug 3, 2026
Merged

steipete merged 2 commits into
mainfrom
clawsweeper/issue-openclaw-openclaw-118039

Conversation

@clawsweeper

@clawsweeper clawsweeper Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #118039.

Deleting LINE's default account now clears its root channelAccessToken as well as the existing secret and file-backed credential fields. This prevents channels list and status from rediscovering a deleted default account as a broken entry while preserving named LINE accounts.

Validation

  • Add a LINE config-adapter regression test for deleting the root default account with a named account retained.
  • Run the focused Vitest file and pnpm check:changed.

Credit: reported by @edenfunf in the linked issue.

@clawsweeper clawsweeper Bot added clawsweeper Tracked by ClawSweeper automation clawsweeper:autogenerated PR created automatically by ClawSweeper clawsweeper:autofix Maintainer opted this PR into bounded ClawSweeper-reviewed autofix without merge labels Aug 2, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: line Channel integration: line size: S labels Aug 2, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. labels Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Codex review: passed. Reviewed August 2, 2026, 4:31 PM ET / 20:31 UTC.

ClawSweeper review

What this changes

The 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 readiness

⚠️ Ready for maintainer review - 1 item remains

Keep 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
Reviewed head: 49483896a05b283075f6d64bb3d08758b0d8b74b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, source-backed bug fix with targeted regression coverage and no remaining discrete review finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This ClawSweeper bot PR is exempt from the external-contributor real-behavior-proof gate; its supplied workflow context includes successful validation for the reviewed head.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This ClawSweeper bot PR is exempt from the external-contributor real-behavior-proof gate; its supplied workflow context includes successful validation for the reviewed head.
Evidence reviewed 7 items Current-main defect remains: Current main's LINE adapter clears only the secret and file fields; it does not clear the root access token or display name when deleting the default account.
Observable failure path: LINE account discovery treats a root access token or token file as evidence that the default account exists, so retaining the token recreates the deleted account in list/status paths.
Correct owner boundary: The shared deletion helper clears only the channel-supplied root-field list; extending the LINE adapter's list is the narrow owner-specific repair rather than adding LINE policy to shared code.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Complete next step (P2) - No discrete repair remains; proceed through the normal exact-head merge gates for this already focused fix.
Agent review details

Security

None.

PR surface

Source 0, Tests +51. Total +51 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 1 51 0 +51
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 52 1 +51

Review metrics

Metric Value Why it matters
Default-account cleanup fields 2 added, 3 retained Deleting a LINE default account now removes the previously retained root token and display name, preventing stale account rediscovery without changing named-account data.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #118039
Summary: This PR is the focused candidate fix for the linked LINE default-account deletion defect; current main still contains the reported omission.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This is a deterministic LINE channel configuration-deletion bug with limited blast radius and a focused repair.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This ClawSweeper bot PR is exempt from the external-contributor real-behavior-proof gate; its supplied workflow context includes successful validation for the reviewed head.

Evidence

What I checked:

Likely related people:

  • Shakker: Current blame for the LINE adapter, LINE account discovery, and shared deletion code attributes the relevant lines to the same recent rewrite. (role: recent current-path contributor; confidence: high; commits: 31f64aeae08e; files: extensions/line/src/config-adapter.ts, extensions/line/src/accounts.ts, src/channels/plugins/config-helpers.ts)
  • Peter Steinberger: The LINE adapter and account path history includes the recent plugin-boundary commit that preceded the current implementation, making this a secondary routing candidate. (role: adjacent plugin-boundary contributor; confidence: medium; commits: 94c5b54d9624; files: extensions/line/src/config-adapter.ts, extensions/line/src/accounts.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-08-02T16:40:34.294Z sha 93eb482bbb757d3ec5f0d7d1c301cc3878f06a52 :: needs changes before merge. :: [P2] Clear the default LINE display name on deletion
  • reviewed 2026-08-02T17:06:30.990Z sha 4948389 :: passed. :: none
  • reviewed 2026-08-02T17:39:14.552Z sha 4948389 :: passed. :: none

@clawsweeper

clawsweeper Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor Author

🦞🔧
ClawSweeper applied a repair to this PR branch.

Repair: kept the fix on this contributor branch instead of opening a replacement PR.
Validation: pnpm check:changed
Updated head: 49483896a05b
Run: https://github.com/openclaw/clawsweeper/actions/runs/30757258269

Current state: exact-head review queued immediately; GitHub checks and the review verdict gate final merge.

Automerge progress:

  • 2026-08-02 16:41:41 UTC review requested repair 93eb482bbb75 (structured ClawSweeper marker: fix-required (finding=review-feedback sha=93eb48...)
  • 2026-08-02 17:01:11 UTC review queued 49483896a05b (after repair)

@clawsweeper
clawsweeper Bot force-pushed the clawsweeper/issue-openclaw-openclaw-118039 branch from 93eb482 to 4948389 Compare August 2, 2026 17:01
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor Author

🦞🧹
ClawSweeper autofix is enabled.

  • Head: 49483896a05b
  • Label: clawsweeper:autofix
  • Action: exact-head review queued (workflow sweep.yml, event repository_dispatch).
  • Flow: review this head, repair/rebase only if needed, then re-review the exact repaired head until no actionable findings remain.

This is fix-only; I will not merge this PR.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 2, 2026
@steipete
steipete merged commit e402606 into main Aug 3, 2026
98 of 111 checks passed
@steipete
steipete deleted the clawsweeper/issue-openclaw-openclaw-118039 branch August 3, 2026 12:20
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
* 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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
…#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>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
* 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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: line Channel integration: line clawsweeper:autofix Maintainer opted this PR into bounded ClawSweeper-reviewed autofix without merge clawsweeper:autogenerated PR created automatically by ClawSweeper clawsweeper Tracked by ClawSweeper automation P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Deleting the default LINE account leaves its channel access token in config, so the account comes back as a broken entry

1 participant