opencode-handoff 0.3.0 → 0.3.1

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/README.md CHANGED
@@ -21,7 +21,7 @@ Add to your OpenCode config (`~/.config/opencode/config.json`):
21
21
 
22
22
  ```json
23
23
  {
24
- "plugin": ["opencode-handoff@0.3.0"]
24
+ "plugin": ["opencode-handoff@0.3.1"]
25
25
  }
26
26
  ```
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-handoff",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "Create focused handoff prompts for continuing work in new OpenCode sessions",
6
6
  "author": "Josh Thomas <josh@joshthomas.dev>",
package/src/tools.ts CHANGED
@@ -37,10 +37,11 @@ export const HandoffSession = (client: OpencodeClient) => {
37
37
  // First append sets height in old session, session_new preserves textarea element,
38
38
  // second append populates new session with already-expanded textarea.
39
39
  await client.tui.clearPrompt()
40
- await new Promise(r => setTimeout(r, 200))
40
+ await new Promise(r => setTimeout(r, 50))
41
41
  await client.tui.appendPrompt({ body: { text: fullPrompt } })
42
42
  await client.tui.executeCommand({ body: { command: "session_new" } })
43
- await new Promise(r => setTimeout(r, 200))
43
+ await client.tui.clearPrompt()
44
+ await new Promise(r => setTimeout(r, 50))
44
45
  await client.tui.appendPrompt({ body: { text: fullPrompt } })
45
46
 
46
47
  await client.tui.showToast({