fix: session start timing and MR type issues

- Add 200ms delay after NewSession before sending keys to fix race
  condition where shell is not ready (mayor.go, crew.go)
- Use merge-request type instead of task for gt mq submit (mq.go)

Fixes gt-tulx

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-18 22:17:13 -08:00
parent ce6fecbc57
commit 2edf2358dd
4 changed files with 19 additions and 12 deletions

View File

@@ -337,15 +337,9 @@ func runMqSubmit(cmd *cobra.Command, args []string) error {
description := beads.FormatMRFields(mrFields)
// Create the merge-request issue
// Note: beads CLI requires type to be one of: task, bug, feature, epic
// Since merge-request is not a built-in type, we'll use a convention:
// Create as task with special title prefix and description fields.
// The "type" field in the description marks it as a merge-request.
description = "type: merge-request\n" + description
createOpts := beads.CreateOptions{
Title: title,
Type: "task", // Use task type, mark as MR in description
Type: "merge-request",
Priority: priority,
Description: description,
}