feat: add /resume command and use Unicode emoji (v0.1.13)#17
Merged
Conversation
Port two fixes from the GitLab sibling repo.
1. /resume — reconnect a thread to a past Claude session
- Iris keeps the thread⇄session map in memory, so a restart (e.g. an
update) drops it and the next message starts fresh. Claude's session
JSONL files survive, so /resume lists them and reattaches.
- claude-sessions.ts: read ~/.claude/projects/<encoded-cwd>/*.jsonl
- session.ts: setResumeId() applies --resume on the next spawn
- commands.ts: /resume (list) and /resume <id> (reconnect, prefix match)
- /clear kills the process but never deletes the JSONL, so /resume still
works afterwards
2. Unicode emoji — replace Slack shortcodes (:green_circle: etc.) with real
Unicode (🟢🔴🔄🧹🏠➡️⚠️ ✅❌🔒✍️🛠️). Shortcodes were not converted when sent
via chat.postMessage (e.g. /sessions status dots showed as text).
- tests added (94 tests, verify green); version 0.1.12 → 0.1.13
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Owner
Author
|
@coderabbitai review |
Owner
Author
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (10)
WalkthroughAdds a Changes
Emoji Normalization and Version Bump
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This was referenced Jun 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports two fixes from the GitLab sibling repo.
1.
/resume— reconnect a thread to a past Claude sessionIris keeps the thread⇄session map in memory, so a restart (e.g. an update) drops it and the next message starts a fresh session. Claude's session JSONL files survive, so
/resumelists them and reattaches.claude-sessions.ts(new): read~/.claude/projects/<encoded-cwd>/*.jsonl;projectDirmaps cwd → projects path (/→-)session.ts:setResumeId()applies--resumeon the next spawn (resumeOverridesmap;ensureresolves live entry > resume override)commands.ts:/resume(list recent sessions) and/resume <id>(reconnect, prefix match)/clearkills the process but never deletes the JSONL, so/resumestill works afterwards2. Unicode emoji
Replace Slack shortcodes (⚠️ ✅❌🔒✍️🛠️). Shortcodes were not converted when sent via
:green_circle:etc.) with real Unicode (🟢🔴🔄🧹🏠➡️chat.postMessage(e.g./sessionsstatus dots rendered as literal text).Verification
Both verified on the GitLab sibling repo (v0.1.9 / v0.1.10) on Iris-dev:
/resumelist → reconnect → context restored after a restart;/sessionsshows 🟢.pnpm verifygreen (94 tests). version 0.1.12 → 0.1.13.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
/resumecommand to list and resume past Claude sessions by session ID.Style
Tests
Chores