Skip to content

thread tool: create new threads in a thread's parent channel - #53

Merged
frolic merged 1 commit into
frolic:mainfrom
hello-pollux:pollux/thread-from-thread-parent
Sep 14, 2026
Merged

frolic merged 1 commit into
frolic:mainfrom
hello-pollux:pollux/thread-from-thread-parent

Conversation

@hello-pollux

Copy link
Copy Markdown
Contributor

Discord forbids nesting threads, so the thread tool refused to run from inside a thread ("cannot create a thread inside a thread"). This resolves the host channel to the thread's parent channel instead, letting a threaded session hand off to a fresh root-level thread.

Trigger: frolic asked for a new root thread while we were inside the roadbikeshoes thread; the harness blocked it, and the only path was a two-line framework fix.

  • startThread now picks channel.parentId when the session channel isThread() and uses that as the host (falls back to the old error only when the parent is missing or not text-based).
  • Tool description updated to document the parent-channel behavior.
  • tsc --noEmit passes; behavior verified live (created the "Wire spark + www redirect across all sites" root thread from inside a thread).

Discord forbids nesting threads, so invoking the thread tool from inside
a thread used to fail outright. Now the host channel resolves to the
thread's parent channel, letting a threaded session hand off to a fresh
root thread (frolic requested this for cross-site coordination)
@frolic
frolic merged commit 2c80950 into frolic:main Sep 14, 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.

2 participants