Skip to content

🤖 refactor: auto-cleanup#3085

Open
mux-bot[bot] wants to merge 8 commits intomainfrom
auto-cleanup
Open

🤖 refactor: auto-cleanup#3085
mux-bot[bot] wants to merge 8 commits intomainfrom
auto-cleanup

Conversation

@mux-bot
Copy link
Copy Markdown
Contributor

@mux-bot mux-bot bot commented Mar 28, 2026

Auto-cleanup checkpoint: 710bda5

@mux-bot
Copy link
Copy Markdown
Contributor Author

mux-bot bot commented Mar 28, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@mux-bot mux-bot bot force-pushed the auto-cleanup branch 14 times, most recently from 104b37a to 3a72ecd Compare April 2, 2026 12:19
mux-bot bot added 8 commits April 2, 2026 20:10
The import of buildArchiveConfirmDescription and buildArchiveConfirmWarning
was placed after the WorkspaceMenuBarProps interface definition instead of
with the other imports. This was an artifact of the extraction in ae2e555.
Move it to the import section where it belongs, grouped with other
@/browser/utils/ imports.
…pshot service

Deduplicate two identical 14-line blocks in captureSnapshotForArchive
that fetch latest untracked paths and return confirmation errors. Both
code paths (new-untracked-after-acknowledgement and first-time-untracked)
now call the same private helper method.

Behavior-preserving: no logic change, same call sequence and return values.
Merged two separate `import type` statements from the same
`@/common/types/workspace` module into a single import line,
consistent with how other files in the codebase handle multiple type
imports from the same module.
Both getHeartbeatSettings and setHeartbeatSettings had nearly identical
object literals duplicated across two ternary branches, differing only
by the optional message field. Use conditional spread to build each
object once, removing the duplicated comment in setHeartbeatSettings.
After the HEARTBEAT_MAX_MESSAGE_LENGTH removal (5f002d8), normalizeHeartbeatMessageInput
became functionally identical to sanitizeHeartbeatMessage for its string | undefined input type.
The only distinguishing logic was the max-length assert which no longer exists.

Consolidate both callsites to use the single sanitizeHeartbeatMessage function, which
safely handles both user input and persisted config values.
The AddSectionButton component was removed from ProjectSidebar's
imports in #3099 but the component file and its test mock were left
behind. Remove both since nothing references them anymore.
Replace direct localStorage.setItem(LEFT_SIDEBAR_COLLAPSED_KEY, ...)
with the collapseLeftSidebar() helper that already exists in uiState.ts,
and remove the now-unused LEFT_SIDEBAR_COLLAPSED_KEY import.
…ppers

After the compaction handler refactor (710bda5), the production callers
were migrated to use the new *State methods directly. The old *Diffs
wrappers had zero remaining callers:

- discardPendingDiffs: no callers in production code or tests
- ackPendingDiffsConsumed: one caller in agentSession.ts, now updated
  to call ackPendingStateConsumed directly

peekPendingDiffs is retained as it's still used by tests as a
convenience accessor.
@mux-bot mux-bot bot force-pushed the auto-cleanup branch from 3a72ecd to 9ff0835 Compare April 2, 2026 20:14
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.

0 participants