Skip to content
Open
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
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,15 @@ jobs:
[ -z "${_WARNINGS}" ] || exit 1

- run: echo "🍏 Job status ${{ job.status }}"

- name: Snap TUI
env:
TERM: xterm-256color
run: |
# Make sure the interactive TUI starts and keeps running (timeout exits 124) #
_RC=0
script -qec "timeout 30 codex" /dev/null >tui.log 2>&1 || _RC=$?
[ "${_RC}" -eq 124 ] || cat tui.log
[ "${_RC}" -eq 124 ] || exit 1

- run: echo "🍏 Job status ${{ job.status }}"
8 changes: 8 additions & 0 deletions snap/local/etc/codex/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Snap defaults, loaded from /etc/codex/config.toml.
# This is the lowest precedence layer, so ~/snap/codex/current/config.toml overrides it.

[features]
# The shared background daemon only runs from an upstream packaged install
# (codex-package.json layout) and self updates outside of snapd.
# Without this the TUI exits with "this CLI has no complete local package".
daemon_auto_start = false
9 changes: 9 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ parts:
after:
- codex

# Snap wide defaults, read by codex as its lowest precedence system config #
defaults:
plugin: dump
source: snap/local

layout:
/etc/codex:
bind: $SNAP/etc/codex

apps:
codex:
command: bin/codex
Expand Down