Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

fix(profiles): use canonical missing-profile remedy (PIN-307)

Luigi Agosti746b37c8a320
diff --git a/internal/mcp/testdata/preamble_budget.json b/internal/mcp/testdata/preamble_budget.json
index 74a65ba6..7ffb44f7 100644
--- a/internal/mcp/testdata/preamble_budget.json
+++ b/internal/mcp/testdata/preamble_budget.json
@@ -16,7 +16,7 @@
{
"surface": "skills/pinchtab/SKILL.md",
"minBytes": 10176,
- "maxBytes": 21238,
+ "maxBytes": 21294,
"takenOn": "2026-09-03",
"commit": "8a12cd4a"
}
diff --git a/internal/orchestrator/handlers_instances.go b/internal/orchestrator/handlers_instances.go
index 6ebcfd57..e5b9a1bc 100644
--- a/internal/orchestrator/handlers_instances.go
+++ b/internal/orchestrator/handlers_instances.go
@@ -15,8 +15,11 @@ import (
"github.com/pinchtab/pinchtab/internal/bridge"
"github.com/pinchtab/pinchtab/internal/config"
"github.com/pinchtab/pinchtab/internal/httpx"
+ "github.com/pinchtab/pinchtab/internal/remedy"
)
+var createMissingProfile = remedy.Declare("pinchtab profiles create <name>")
+
type startInstanceRequest struct {
ProfileID string `json:"profileId,omitempty"`
Mode string `json:"mode,omitempty"`
@@ -255,10 +258,9 @@ func (o *Orchestrator) startInstanceWithRequest(w http.ResponseWriter, r *http.R
if req.ProfileID != "" {
profileName, err = o.resolveProfileName(req.ProfileID)
if err != nil {
- httpx.ErrorCode(w, http.StatusNotFound, "profile_not_found", fmt.Sprintf("profile %q not found", req.ProfileID), false, map[string]any{
- "profile": req.ProfileID,
- "remedy": "pinchtab profiles create <name>",
- })
+ details := remedy.Details("Creating and authenticating a reusable profile is a human setup step.", createMissingProfile.Fill(req.ProfileID))
+ details["profile"] = req.ProfileID
+ httpx.ErrorCode(w, http.StatusNotFound, "profile_not_found", fmt.Sprintf("profile %q not found", req.ProfileID), false, details)
return
}
} else {