Skip to content

merge dev into master#395

Merged
Tarquinen merged 11 commits intomasterfrom
dev
Feb 18, 2026
Merged

merge dev into master#395
Tarquinen merged 11 commits intomasterfrom
dev

Conversation

@Tarquinen
Copy link
Collaborator

@Tarquinen Tarquinen commented Feb 18, 2026

compress rewrite and some safer code stuff

misterdas and others added 11 commits February 11, 2026 09:33
- Add custom error classes for DCP command handling (replaces magic strings)
- Validate purgeErrors.turns and turnProtection.turns >= 1 (prevents data loss)
- Replace silent error swallowing with console.error fallback in logger
- Add config validation warning for invalid turns values

Fixes:
- Magic string error control flow anti-pattern
- Potential immediate pruning of all errors with turns=0
- Silent error hiding in logger methods
Changes:
- Remove custom error classes - revert to simple error strings
  (maintainer confirmed strings aren't matched, just used for control flow)
- Add devError method to logger for developer-only errors (no TUI output)
- Expand numeric validation to all fields:
  - nudgeFrequency: validate >= 1, clamp at runtime
  - turnProtection.turns: validate >= 1 (already has runtime check)
  - purgeErrors.turns: already validated >= 1
- Add runtime clamping for nudgeFrequency in inject.ts

Fixes maintainer concerns:
1. Custom error classes were overkill for simple control flow
2. Numeric validation now covers all numeric config fields
…ents

fix: critical bugs and error handling improvements
…older-migration

Feat/dev compress id placeholder migration
@Tarquinen Tarquinen merged commit dd07886 into master Feb 18, 2026
1 check passed
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.

3 participants

Comments