Skip to content

Claude/competent lichterman#5

Open
Igor Holt (igor-holt) wants to merge 3 commits intomainfrom
claude/competent-lichterman
Open

Claude/competent lichterman#5
Igor Holt (igor-holt) wants to merge 3 commits intomainfrom
claude/competent-lichterman

Conversation

@igor-holt
Copy link
Copy Markdown
Member

No description provided.

Igor Holt (igor-holt) and others added 2 commits April 10, 2026 10:46
Excludes .claude/* from git (local Claude IDE session data) while
tracking .claude/launch.json for dev server configuration. Adds
update-feed Python script as the only runnable in this profile repo.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Wrap update_feed.py in a bash loop (3600s interval) so launch.json
runs it as a persistent background daemon instead of a one-shot script.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yennefer-observatory Error Error Apr 11, 2026 7:32pm

Signed-off-by: Igor Holt <iholt@mymail.aacc.edu>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new Claude IDE launch configuration for periodically updating the feed and updates the .gitignore file to include this configuration while excluding other local IDE data. A recommendation was made to specify python3 in the runtime arguments to ensure compatibility with the script's Python 3 requirements.

"runtimeExecutable": "bash",
"runtimeArgs": [
"-c",
"while true; do echo \"[feed] $(date '+%H:%M:%S') running update...\"; python scripts/update_feed.py && echo \"[feed] done\"; sleep 3600; done"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The script scripts/update_feed.py uses Python 3 features such as f-strings and datetime.fromisoformat (which requires Python 3.7+). In many environments, the python command may still point to Python 2.7 or may not be available at all. It is safer to use python3 to ensure the script runs with the correct interpreter.

Suggested change
"while true; do echo \"[feed] $(date '+%H:%M:%S') running update...\"; python scripts/update_feed.py && echo \"[feed] done\"; sleep 3600; done"
"while true; do echo \"[feed] $(date '+%H:%M:%S') running update...\"; python3 scripts/update_feed.py && echo \"[feed] done\"; sleep 3600; done"

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the .claude launch configuration for the update-feed task to run the feed updater on a repeating (hourly) loop with basic status logging.

Changes:

  • Switches the launch runtime from python to bash.
  • Adds an inline while true loop to run scripts/update_feed.py every hour and print progress messages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"runtimeArgs": ["scripts/update_feed.py"],
"runtimeExecutable": "bash",
"runtimeArgs": [
"-c",
Copy link

Copilot AI Apr 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The while true loop makes this launch configuration run indefinitely, so the process will never exit on its own. If the launcher/debugger expects a single run (as the previous Python config did), this can hang sessions; consider keeping a one-shot configuration and adding a separate "continuous" config or moving the hourly scheduling to a dedicated script/service.

Suggested change
"-c",
"-c",
"echo \"[feed] $(date '+%H:%M:%S') running update...\"; python scripts/update_feed.py && echo \"[feed] done\""
],
"port": 0
},
{
"name": "update-feed-continuous",
"runtimeExecutable": "bash",
"runtimeArgs": [
"-c",

Copilot uses AI. Check for mistakes.
"runtimeExecutable": "bash",
"runtimeArgs": [
"-c",
"while true; do echo \"[feed] $(date '+%H:%M:%S') running update...\"; python scripts/update_feed.py && echo \"[feed] done\"; sleep 3600; done"
Copy link

Copilot AI Apr 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the inline bash command, sleep 3600 will run even if python scripts/update_feed.py fails (because of the ; separator). This can mask failures for up to an hour; consider explicitly checking the exit status and exiting/breaking on error so failures surface immediately.

Suggested change
"while true; do echo \"[feed] $(date '+%H:%M:%S') running update...\"; python scripts/update_feed.py && echo \"[feed] done\"; sleep 3600; done"
"while true; do echo \"[feed] $(date '+%H:%M:%S') running update...\"; if ! python scripts/update_feed.py; then echo \"[feed] update failed\" >&2; exit 1; fi; echo \"[feed] done\"; sleep 3600; done"

Copilot uses AI. Check for mistakes.
Comment on lines +6 to +9
"runtimeExecutable": "bash",
"runtimeArgs": [
"-c",
"while true; do echo \"[feed] $(date '+%H:%M:%S') running update...\"; python scripts/update_feed.py && echo \"[feed] done\"; sleep 3600; done"
Copy link

Copilot AI Apr 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This config now depends on bash and a python executable being on PATH, which is not portable across developer environments (e.g., Windows) and may resolve to an unexpected Python version. If cross-platform use is expected, consider switching back to runtimeExecutable: "python" (or a repo-local wrapper script) and avoid hard-coding bash.

Suggested change
"runtimeExecutable": "bash",
"runtimeArgs": [
"-c",
"while true; do echo \"[feed] $(date '+%H:%M:%S') running update...\"; python scripts/update_feed.py && echo \"[feed] done\"; sleep 3600; done"
"runtimeExecutable": "python",
"runtimeArgs": [
"-u",
"-c",
"import datetime, subprocess, sys, time; exec(\"while True:\\n print(f'[feed] {datetime.datetime.now().strftime(%H:%M:%S)!r}[1:-1] running update...')\\n subprocess.run([sys.executable, 'scripts/update_feed.py'], check=True)\\n print('[feed] done')\\n time.sleep(3600)\")"

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c8c6c36ba0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

"runtimeExecutable": "bash",
"runtimeArgs": [
"-c",
"while true; do echo \"[feed] $(date '+%H:%M:%S') running update...\"; python scripts/update_feed.py && echo \"[feed] done\"; sleep 3600; done"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Stop invoking update_feed.py in an endless loop

This change makes update-feed run scripts/update_feed.py forever (while true), but that script is non-idempotent (re.sub(r"()(.*?)()", ...) in scripts/update_feed.py rewrites at every string boundary), so repeated executions rapidly amplify profile/README.md content and corrupt the feed output over time. In the scenario where this launch target is left running for multiple cycles, it will continuously bloat the README and generate noisy/churning file state instead of stable hourly updates.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants