Files
loki/codex-wrapper
T
g-butandClaude Sonnet 4.6 a693578f72 feat(db+scripts): add orchestration-events schema/queries, navigation util, codex-wrapper
- orchestration-events schema + queries: persistent event log for agent lifecycle
  (input_requested, close_requested, task_started, session_closed events per project)
- navigation.ts: isCurrentPath helper for active-link detection in sidebar/nav
- codex-wrapper: snap Codex config bridge — copies ~/.codex/config.toml into the
  snap home so the Snap-packaged Codex sees the user's model/API key configuration

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 16:27:12 +02:00

24 lines
575 B
Bash

#!/usr/bin/env bash
set -euo pipefail
real_home="${HOME}"
snap_home="${real_home}/snap/codex/current"
snap_config_dir="${snap_home}/.codex"
snap_xdg_config_dir="${snap_home}/.config"
real_config="${real_home}/.codex/config.toml"
snap_config="${snap_config_dir}/config.toml"
mkdir -p "${snap_config_dir}" "${snap_xdg_config_dir}"
if [[ -r "${real_config}" ]]; then
cp "${real_config}" "${snap_config}"
chmod 600 "${snap_config}"
fi
export HOME="${snap_home}"
export XDG_CONFIG_HOME="${snap_xdg_config_dir}"
export CODEX_HOME="${snap_home}"
exec /snap/bin/codex "$@"