Skip to content

[codex] Allow session creation in reusable threads#7

Open
Yehonal wants to merge 2 commits into
raylin01:masterfrom
NestDevLab:pr/discode-session-thread
Open

[codex] Allow session creation in reusable threads#7
Yehonal wants to merge 2 commits into
raylin01:masterfrom
NestDevLab:pr/discode-session-thread

Conversation

@Yehonal

@Yehonal Yehonal commented May 29, 2026

Copy link
Copy Markdown

Summary

Adds a reusable-thread path for /create-session.

When the command is run inside an unbound Discord thread whose parent is a DisCode project channel, the session wizard now carries that thread through the flow and starts the new runner session there instead of creating another thread.

Details

  • Detects reusable session threads from interaction context.
  • Rejects reuse when the thread already has a DisCode session or synced session binding.
  • Preserves the target thread through /create-session, dashboard "new session" flows, runner selection, and session state recovery.
  • Revalidates the thread at start time before binding it.

Validation

  • syncwheel check: OK, no actions needed.
  • git diff --check: passed before Syncwheel rebuild.
  • npm test: unrelated pre-existing storage.test.ts mock failure (js-yaml load does not exist); embeds and session-sync tests passed.
  • tsc --noEmit: unrelated pre-existing errors in src/handlers/ws/register-handler.ts.

@Yehonal Yehonal marked this pull request as ready for review June 14, 2026 12:28
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.

1 participant