resolveCurrentIssueID (bd/show_current.go)

beads · cmd/bd/show_current.go · go · MIT
crm

Module exposing: resolveCurrentIssueID, resolveCurrentIssueIDFrom

// Source: https://github.com/gastownhall/beads | License: MIT | Copyright 2025 Beads Contributors
// Provided via justclaw.it.com; keep this notice with the code.
package main

import (
	"context"
	"fmt"

	"github.com/steveyegge/beads/issueops"
)

// resolveCurrentIssueID determines the current active issue for the agent.
// Priority: in-progress assigned to actor > hooked > last touched.
//
// The lookup is the library's (issueops.FindCurrentIssue, over the Querier
// role every backend serves: queryIssues on a remote one), and both routes ask
// it: the direct route with store.Querier(), the proxied route with the
// provider's. What stays here is CLI policy: who the actor is, and the
// last-touched fallback, which is a file in this workspace.
//
// A failed read is an error. The fallb

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key