import { toUserFacingAgentErrorMessage } from "../../services/agentErrorMessage";
export function getSubmitErrorMessage(error) {
    const fallback = "Failed to submit prompt. Please try again.";
    if (!(error instanceof Error))
        return fallback;
    const cleaned = toUserFacingAgentErrorMessage(error.message);
    return cleaned || fallback;
}
//# sourceMappingURL=agentSubmitErrors.js.map