{"record":{"id":"2838fc065a8e0032","repo":"gastownhall/beads","slug":"dolt-auto-commit-w","errorCode":null,"errorMessage":"dolt auto-commit: %w","messagePattern":"dolt auto-commit: %w","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/bd/create_form.go","lineNumber":201,"sourceCode":"\t\t}\n\n\t\tdepSpecs = append(depSpecs, domain.DependencySpec{Type: depType, TargetID: dependsOnID})\n\t}\n\n\t// The issue and its edges (parent-child per GH#1983, plus form deps)\n\t// commit in one transaction; a failed edge rolls back the create instead\n\t// of leaving a dep-less issue behind (same contract as bd create).\n\tedges := createDepEdges{parentID: fv.ParentID, specs: depSpecs}\n\tif err := createIssueWithDeps(ctx, s, issue, actor, edges); err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create issue: %w\", err)\n\t}\n\n\tif edges.empty() {\n\t\t// Bare create: preserve the embedded-mode follow-up Dolt commit.\n\t\t// The deps path commits inside its transaction instead.\n\t\tshouldCommit, err := shouldCommitCreatePostWrites(issue, false)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"dolt auto-commit: %w\", err)\n\t\t}\n\t\tif shouldCommit {\n\t\t\tcommitMsg := fmt.Sprintf(\"bd: create %s\", issue.ID)\n\t\t\tif err := s.Commit(ctx, commitMsg); err != nil && !isDoltNothingToCommit(err) {\n\t\t\t\tWarnError(\"failed to commit post-create metadata: %v\", err)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn issue, nil\n}\n\nvar createFormCmd = &cobra.Command{\n\tUse:     \"create-form\",\n\tGroupID: \"issues\",\n\tShort:   \"Create a new issue using an interactive form\",\n\tLong: `Create a new issue using an interactive terminal form.\n","sourceCodeStart":183,"sourceCodeEnd":219,"githubUrl":"https://github.com/gastownhall/beads/blob/71377f276968b452ee607177637970a4ff888584/cmd/bd/create_form.go#L183-L219","documentation":"Wraps a failure from shouldCommitCreatePostWrites, the check that decides whether a follow-up Dolt commit is needed after a bare (edge-less) embedded create. The issue itself was created successfully; only the post-create auto-commit decision failed.","triggerScenarios":"CreateIssueFromFormValues completes a bare create (no parent, no deps) and shouldCommitCreatePostWrites returns an error while evaluating embedded-mode commit policy.","commonSituations":"Embedded Dolt session in a bad state; storage driver not exposing commit capability; misconfigured embedded mode.","solutions":["Check the wrapped error for the underlying cause","Verify the issue was actually created (`bd list`) — it likely was","Run `bd doctor` on the embedded database","If metadata (labels etc.) is missing, `bd dolt push` or re-commit manually"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"issue, err := CreateIssueFromFormValues(ctx, fv)\nif err != nil && strings.Contains(err.Error(), \"dolt auto-commit\") {\n    // creation likely succeeded; verify and commit metadata manually\n    log.Printf(\"post-create commit decision failed: %v\", err)\n}","preventionTips":["Run bd doctor on embedded databases periodically","Keep embedded-mode drivers up to date","After this error, verify the issue exists before recreating it"],"tags":["dolt","autocommit","embedded","post-create"],"backgroundTag":"dolt-autocommit-failed","analyzedSha":"71377f276968b452ee607177637970a4ff888584","analyzedAt":"2026-08-30T18:55:39.744Z","schemaVersion":2},"datasetVersion":"2026-08-30T23:17:21.991Z"}