@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
7 lines • 639 B
JavaScript
import { REQUIRED_COMPACTION_ERROR_MESSAGE } from "../../core/required-compaction-error.js";
export const REQUIRED_COMPACTION_INTERACTIVE_MESSAGE = "Context remains above the compaction threshold because compaction did not complete. Run /compact to retry, or /new to start a fresh session.";
/** The TUI has `/compact` and `/new`, so its failed-compaction error names them instead of the neutral recovery. */
export function interactiveErrorText(errorMessage) {
return errorMessage === REQUIRED_COMPACTION_ERROR_MESSAGE ? REQUIRED_COMPACTION_INTERACTIVE_MESSAGE : errorMessage;
}
//# sourceMappingURL=required-compaction-wording.js.map