claude-threads 0.16.7 → 0.16.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Fixed
11
+ - **Context prompt**: Fixed context prompt appearing when starting a session with the first message in a thread
12
+ - The triggering message was incorrectly included in the count, making it show "1 message before this point" when there were none
13
+
14
+ ## [0.16.7] - 2025-12-31
15
+
16
+ ### Fixed
17
+ - **Session resume**: Validate working directory exists before resuming sessions after restart
18
+ - Prevents crashes when a worktree or directory has been deleted
19
+
10
20
  ## [0.16.6] - 2025-12-31
11
21
 
12
22
  ### Added
package/dist/index.js CHANGED
@@ -19035,7 +19035,7 @@ async function startSession(options, username, replyToPostId, platformId, ctx) {
19035
19035
  const content = await ctx.buildMessageContent(options.prompt, session.platform, options.files);
19036
19036
  const messageText = typeof content === "string" ? content : options.prompt;
19037
19037
  if (replyToPostId) {
19038
- const contextOffered = await ctx.offerContextPrompt(session, messageText);
19038
+ const contextOffered = await ctx.offerContextPrompt(session, messageText, replyToPostId);
19039
19039
  if (contextOffered) {
19040
19040
  return;
19041
19041
  }
@@ -19886,7 +19886,7 @@ class SessionManager {
19886
19886
  shouldPromptForWorktree: (s) => this.shouldPromptForWorktree(s),
19887
19887
  postWorktreePrompt: (s, r) => this.postWorktreePrompt(s, r),
19888
19888
  buildMessageContent: (t, p, f) => this.buildMessageContent(t, p, f),
19889
- offerContextPrompt: (s, q) => this.offerContextPrompt(s, q)
19889
+ offerContextPrompt: (s, q, e) => this.offerContextPrompt(s, q, e)
19890
19890
  };
19891
19891
  }
19892
19892
  getEventContext() {
@@ -20025,8 +20025,8 @@ class SessionManager {
20025
20025
  console.log(` \uD83E\uDDF5 Session (${shortId}\u2026) context prompt timed out, continuing without context`);
20026
20026
  }
20027
20027
  }
20028
- async offerContextPrompt(session, queuedPrompt) {
20029
- const messageCount = await getThreadContextCount(session);
20028
+ async offerContextPrompt(session, queuedPrompt, excludePostId) {
20029
+ const messageCount = await getThreadContextCount(session, excludePostId);
20030
20030
  if (messageCount === 0) {
20031
20031
  if (session.claude.isRunning()) {
20032
20032
  session.claude.sendMessage(queuedPrompt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-threads",
3
- "version": "0.16.7",
3
+ "version": "0.16.8",
4
4
  "description": "Share Claude Code sessions live in a Mattermost channel with interactive features",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",