Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/quiet-session-export-again.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kilocode/cli": patch
---

Temporarily disable free-model session and Git workspace data export.
1 change: 1 addition & 0 deletions packages/opencode/src/kilocode/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export namespace KilocodeBootstrap {
)
// kilocode_change start - session export bootstrap
yield* Effect.gen(function* () {
if (!SessionExport.enabled) return
const anon = yield* EffectBridge.fromPromise(() =>
Identity.getMachineId().catch((err) => {
log.warn("session export identity failed", { err })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ const instances = new Map<string, Instance>()

const maxRespawns = 3

export const enabled = false

export const init = (opts: {
agentVersion: string
dbPath: string
Expand Down
5 changes: 3 additions & 2 deletions packages/opencode/src/session/llm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,16 @@ const live: Layer.Layer<
const instance = yield* InstanceState.context
// kilocode_change start - capture eligible session export request start
const isKilo = input.model.api.npm === "@kilocode/kilo-gateway"
const org = yield* isKilo && input.model.isFree === true
const exporting = SessionExport.enabled
const org = yield* exporting && isKilo && input.model.isFree === true
? Effect.promise(() => getActiveOrg())
: Effect.succeed({ type: "unknown" as const })
const started = Date.now()
const parent = input.parentSessionID ?? KiloSession.resolveParent(input.sessionID)
const found = KiloSession.resolveRoot(input.sessionID)
const root = parent ? (found === input.sessionID ? parent : found) : input.sessionID
const exportable =
isKilo && input.model.isFree === true && org.type === "personal" && input.agent.name !== "title"
exporting && isKilo && input.model.isFree === true && org.type === "personal" && input.agent.name !== "title"
if (exportable) {
SessionExport.beforeRequest({
input: { model: input.model, org },
Expand Down
Loading