fix: address remaining Cubic issues — reset lastPartText on new message, TTY guard for installer, filter disabled skills, local-dev version resolution

This commit is contained in:
YeonGyu-Kim
2026-02-09 11:01:38 +09:00
parent e5abf8702e
commit 5ca3d9c489
4 changed files with 9 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ export function buildAvailableSkills(
}))
const discoveredAvailable: AvailableSkill[] = discoveredSkills
.filter(s => !builtinSkillNames.has(s.name))
.filter(s => !builtinSkillNames.has(s.name) && !disabledSkills?.has(s.name))
.map((skill) => ({
name: skill.name,
description: skill.definition.description ?? "",

View File

@@ -2,6 +2,7 @@ import {
findPluginEntry,
getCachedVersion,
getLatestVersion,
getLocalDevVersion,
isLocalDevMode,
} from "../../hooks/auto-update-checker/checker"
@@ -15,7 +16,7 @@ export async function getLocalVersion(
try {
if (isLocalDevMode(directory)) {
const currentVersion = getCachedVersion()
const currentVersion = getLocalDevVersion(directory) ?? getCachedVersion()
const info: VersionInfo = {
currentVersion,
latestVersion: null,

View File

@@ -71,6 +71,7 @@ export function handleMessageUpdated(ctx: RunContext, payload: EventPayload, sta
state.hasReceivedMeaningfulWork = true
state.messageCount++
state.lastPartText = ""
}
export function handleToolExecute(ctx: RunContext, payload: EventPayload, state: EventState): void {

View File

@@ -14,6 +14,11 @@ import { detectedToInitialValues, formatConfigSummary, SYMBOLS } from "./install
import { promptInstallConfig } from "./tui-install-prompts"
export async function runTuiInstaller(args: InstallArgs, version: string): Promise<number> {
if (!process.stdin.isTTY || !process.stdout.isTTY) {
console.error("Error: Interactive installer requires a TTY. Use --non-interactive or set environment variables directly.")
return 1
}
const detected = detectCurrentConfig()
const isUpdate = detected.isInstalled