-
Notifications
You must be signed in to change notification settings - Fork 0
feat: context links for Slack-originated HTTP sessions #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AztecBot
wants to merge
17
commits into
main
Choose a base branch
from
feat/context-links-oauth-refresh
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d57630e
fix: resolve channel names via Slack API for all sessions
AztecBot 4dc1515
feat: show artifacts and last reply on dashboard cards
AztecBot d5d54a6
feat: consistent collapsed cards with artifacts and reply preview
AztecBot 69a66c0
fix: clone_repo defaults to correct branch per profile, softer fallba…
AztecBot ca11562
docs: strengthen session_status guidance in all profile prompts
AztecBot a6b1040
fix: scroll to bottom on workspace page load
AztecBot d7d5277
docs: session_status must be the very first action in all profiles
AztecBot a280601
feat: session recovery, activity dedup, creds CLI, workspace UI impro…
AztecBot 3baa6b1
feat: context links for Slack-originated HTTP sessions, OAuth refresh…
AztecBot 92fb9e9
feat: add elapsed time to status comments (Slack + GitHub)
AztecBot 2cbc758
fix: ignore bot/app mentions, fix dashboard regex in template literal
AztecBot d8f388d
feat: direct redis read_log, build tools with full make targets, form…
AztecBot 3c60433
feat: review profile, shared sidecar, webhook, session storage fix
AztecBot af39865
fix: add explicit permissions to test workflow
AztecBot c7c1aa6
Potential fix for code scanning alert no. 34: Clear-text logging of s…
ludamad 28262f1
fix: remove MCP build tools, replace with Bash/make advice in CLAUDE.md
AztecBot e16bb2a
fix: kill leftover containers from previous runs before starting new …
AztecBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,9 @@ on: | |
| branches: [main] | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| #!/usr/bin/env bash | ||
| # ClaudeBox launcher — runs the server with auto-update restart loop. | ||
| # | ||
| # Usage: | ||
| # claudebox [--http-only] [--no-auto-update] [--profiles=X,Y] [...] | ||
| # | ||
| # The server exits with code 75 when auto-update pulls new code. | ||
| # This script restarts it automatically. | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| # Resolve the repo directory (this script lives in <repo>/bin/) | ||
| SCRIPT_DIR="$(cd "$(dirname "$(readlink -f "$0" 2>/dev/null || realpath "$0" 2>/dev/null || echo "$0")")" && pwd)" | ||
| REPO_DIR="$(cd "$SCRIPT_DIR/.." && pwd)" | ||
|
|
||
| # Source env file if it exists (secrets, config) | ||
| ENV_FILE="$HOME/.claudebox/env" | ||
| if [ -f "$ENV_FILE" ]; then | ||
| set -a | ||
| source "$ENV_FILE" | ||
| set +a | ||
| fi | ||
|
|
||
| # Default to auto-update unless explicitly disabled | ||
| AUTO_UPDATE="--auto-update" | ||
| ARGS=() | ||
| for arg in "$@"; do | ||
| if [ "$arg" = "--no-auto-update" ]; then | ||
| AUTO_UPDATE="" | ||
| else | ||
| ARGS+=("$arg") | ||
| fi | ||
| done | ||
|
|
||
| cd "$REPO_DIR" | ||
|
|
||
| while true; do | ||
| echo "─── claudebox starting ($(git rev-parse --short HEAD 2>/dev/null || echo '?')) ───" | ||
| set +e | ||
| node --experimental-strip-types --no-warnings server.ts $AUTO_UPDATE "${ARGS[@]}" | ||
| EXIT_CODE=$? | ||
| set -e | ||
|
|
||
| if [ "$EXIT_CODE" = "75" ]; then | ||
| echo "─── auto-update: restarting ───" | ||
| sleep 1 | ||
| continue | ||
| fi | ||
|
|
||
| echo "─── claudebox exited ($EXIT_CODE) ───" | ||
| exit $EXIT_CODE | ||
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/usr/bin/env bash | ||
| # Refresh OAuth token by briefly launching claude in a PTY | ||
| # script -c allocates a pseudo-TTY so claude thinks it's interactive | ||
|
|
||
| export HOME=/mnt/user-data/claude | ||
| export PATH="$HOME/.local/bin:$PATH" | ||
|
|
||
| script -qec "claude" /dev/null & | ||
| PID=$! | ||
| sleep 10 | ||
| kill $PID 2>/dev/null | ||
| wait $PID 2>/dev/null | ||
| echo "[$(date -Is)] OAuth token refreshed (pid=$PID)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #!/usr/bin/env bash | ||
| # Bootstrap ClaudeBox — install dependencies. | ||
| # Called by install.sh and by auto-update after pulling new code. | ||
| set -euo pipefail | ||
|
|
||
| cd "$(dirname "$0")" | ||
|
|
||
| # Install/update npm deps (skip if node_modules is fresh) | ||
| if [ package.json -nt node_modules/.package-lock.json ] 2>/dev/null || [ ! -d node_modules ]; then | ||
| echo "[bootstrap] npm install..." | ||
| npm install --no-audit --no-fund --prefer-offline 2>&1 | tail -3 | ||
| else | ||
| echo "[bootstrap] Dependencies up to date." | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.