Unify optimization for single-code and multi-code boxing modes: after completing a box, set the next box number to max(existing boxes) + 1, avoiding duplicate box numbers when browsing historical boxes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>