Skip to content

session: drop ??= in ext(), plus a biome format pass over ./src - #1364

Merged
yagop merged 2 commits into
masterfrom
fix/session-ext-assign-in-expression
Sep 7, 2026
Merged

session: drop ??= in ext(), plus a biome format pass over ./src#1364
yagop merged 2 commits into
masterfrom
fix/session-ext-assign-in-expression

Conversation

@yagop

@yagop yagop commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Two commits:

  1. session.ts fixbun run format (biome) flagged noAssignInExpressions on const ext = (envelope.ext ??= {}) in SessionHandle.ext(). Replaced with an explicit statement (no ??=, no assignment-in-expression):

    if (envelope.ext === undefined) envelope.ext = {};
    const ext = envelope.ext;

    Behavior identical.

  2. biome format pass over ./src — 7 files that had drifted (biome isn't run in CI, only lint:core/check:edge are). Pure formatting: line-wrapping to 120 cols, no behavior change.

Together these make bun run format exit clean. npm run typecheck + 56 session tests pass.

🤖 Generated with Claude Code

yagop and others added 2 commits September 7, 2026 15:24
biome's noAssignInExpressions flagged the assignment inside `const ext =
(envelope.ext ??= {})`. Use an explicit `if (envelope.ext === undefined)`
statement then read it back; behavior is identical.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
`bun run format` (biome check --write --indent-style=space --line-width=120)
reformats these files, which had drifted since biome is not run in CI. Pure
formatting - line wrapping to 120 cols, no behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@yagop yagop changed the title session: hoist envelope.ext init out of the initializer expression session: drop ??= in ext(), plus a biome format pass over ./src Sep 7, 2026
@yagop
yagop merged commit edc3642 into master Sep 7, 2026
8 checks passed
@yagop yagop mentioned this pull request Sep 7, 2026
3 tasks
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