coleam00/Archon · error

Failed to update isolation environment status: no environmen

Error message

Failed to update isolation environment status: no environment found with id '${id}'

What it means

Error "Failed to update isolation environment status: no environment found with id '${id}'" thrown in coleam00/Archon.

Source

Thrown at packages/core/src/db/isolation-environments.ts:192

  getLog().debug(
    { envId: result.rows[0].id, codebaseId: env.codebase_id, branch: env.branch_name },
    'db.isolation_env_create_completed'
  );
  return normalizeEnvironmentRow(result.rows[0]);
}

/**
 * Update environment status
 */
export async function updateStatus(id: string, status: 'active' | 'destroyed'): Promise<void> {
  const result = await pool.query(
    'UPDATE remote_agent_isolation_environments SET status = $1 WHERE id = $2',
    [status, id]
  );

  if (result.rowCount === 0) {
    throw new Error(
      `Failed to update isolation environment status: no environment found with id '${id}'`
    );
  }
  getLog().debug({ envId: id, status }, 'db.isolation_env_status_update_completed');
}

/**
 * Update environment metadata (merge with existing)
 */
export async function updateMetadata(id: string, metadata: Record<string, unknown>): Promise<void> {
  const dialect = getDialect();
  const result = await pool.query(
    `UPDATE remote_agent_isolation_environments
     SET metadata = ${dialect.jsonMerge('metadata', 1)}
     WHERE id = $2`,
    [JSON.stringify(metadata), id]
  );

View on GitHub (pinned to 0773b97458)

When it happens

Trigger: Thrown at packages/core/src/db/isolation-environments.ts:192 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of coleam00/Archon@0773b97458 (2026-09-01). Data as JSON: /api/errors/352a83d924df76fa. Report an issue: GitHub.