deepseek-ai/deepseek-harness · error · TypeError
feedback text must not be empty
Error message
feedback text must not be empty
What it means
Error "feedback text must not be empty" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/feedback/command-feedback/src/index.ts:74
declare module '@deepseek-ai/dsh-session/types' {
interface SessionEventMap {
/**
* One recorded human remark about this session. Log-only and independent
* of its trigger; it never enters model context or derived history.
*/
'feedback/record': { text: string }
}
}
/**
* Record feedback independently of any UI trigger.
* @param session - session the feedback describes.
* @param text - human-authored feedback; surrounding whitespace is discarded.
* @throws {TypeError} when the normalized text is empty.
*/
export function recordFeedback(session: Session, text: string): void {
const normalized = text.trim()
if (normalized.length === 0) throw new TypeError('feedback text must not be empty')
session.append('feedback/record', { text: normalized })
}
/**
* Validate, record, and acknowledge one feedback entry. Returning an error
* leaves no `feedback/record` event.
* @param invocation - receiving agent, raw command input, and UI cancellation.
* @param ctx - plugin context used to read the optional telemetry service.
* @returns an acknowledgement containing the receiving session and anonymous
* user ids plus the session-sharing disclosure, or a usage error when no
* feedback text was supplied.
*/
function executeFeedbackCommand(invocation: CommandInvocation, ctx: Context): CommandResult {
if (invocation.rawInput.trim().length === 0) {
return { kind: 'error', text: `Feedback text is required. ${USAGE}` }
}
recordFeedback(invocation.agent.session, invocation.rawInput)
const telemetry = ctx.get('sessionTelemetry')View on GitHub (pinned to b150a551b8)
When it happens
Trigger: Thrown at packages/feedback/command-feedback/src/index.ts:74 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/5135b63694f52147.
Report an issue: GitHub.