Skip to content

Merge dev to main for v0.3.0 - #18

Merged
Natuworkguy merged 41 commits into
mainfrom
dev
Aug 24, 2026
Merged

Merge dev to main for v0.3.0#18
Natuworkguy merged 41 commits into
mainfrom
dev

Conversation

@Natuworkguy

Copy link
Copy Markdown
Owner

No description provided.

…lity and update args type hint in shell_tool function
@Natuworkguy Natuworkguy added the release Official release pull request. Allows merging directly into main. label Aug 24, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@Natuworkguy This release PR does not bump flash/version.py (still 0.2.0). Update __version__ before merging.

@github-actions
github-actions Bot dismissed their stale review August 24, 2026 05:03

flash/version.py bumped. Clearing the version guard.

@Natuworkguy
Natuworkguy merged commit 5c44759 into main Aug 24, 2026
16 checks passed

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

Copy link
Copy Markdown

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: 6d0c76c517

ℹ️ 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 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 address that feedback".

Comment thread install.sh
echo "Registering the flash:// URL handler..."
"$FLASH_BIN" --register-url-scheme || \
echo "Unable to install flash:// URL handler. Continuing."
FLASH_VERSION="$(flash --version)"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use the resolved flash binary for version output

In a fresh pipx install where PIPX_BIN_DIR is not already on PATH, this unqualified flash lookup fails under set -euo pipefail even though $FLASH_BIN just pointed at the installed executable and the script has a later PATH warning for exactly that case. Use "$FLASH_BIN" --version or tolerate this failure so new installs do not exit non-zero after successfully installing.

Useful? React with 👍 / 👎.

Comment thread flash/system_prompt.txt
== Tool calls ==
Only the tools defined in the Tool System Prompt below exist. There is no `ls`, `cat`, or `read` tool, run those through `shell`. Every response you send is either one or more real tool calls made through the function-calling mechanism, or your final natural-language answer, never both, and never a JSON object typed out as text. Typed-out JSON does not execute: nothing runs it, the user just sees raw text, and your turn ends with nothing done. If you want to show the user a command rather than run it, write it as plain text in backticks (for example `ls -la`) instead of describing or half-executing it. When retrying a failed or corrected command, silently call the tool again with the fix, never narrate the fix in text and stop there. Before reaching for any tool, check whether the answer is already given to you verbatim in this prompt (the current date, your scratch directory path); if so, answer directly instead of spending a call to rediscover it.
You can run tools here.
Only the tools defined in the Tool System Prompt below exist. There is no `ls`, `cat`, or `read` tool, run those through `shell`. Every response you send is either one or more real tool calls made through the function-calling mechanism, or your final natural-language answer, never both, and never a JSON object typed out as text. Typed-out JSON does not execute: nothing runs it, the user just sees raw text, and your turn ends with nothing done. If you want to show the user a command rather than run it, write it as plain text in backticks (for example `ls -la`) instead of describing or half-executing it. When retrying a failed or corrected command, silently call the tool again with the fix, never narrate the fix in text and stop there. Before reaching for any tool, check whether the answer is already given to you verbatim in this prompt (the current date, your scratch directory path); if so, answer directly instead of spending a call to rediscover it. Every turn must end with a final natural-language reply to the user, never stop right after a tool call with nothing further; once you've gathered what you need, always write the reply, even if the result is empty, uncertain, partial, or an error, state plainly what happened and what it means rather than leaving the user with silence.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Remove the stale no-read-tool instruction

Now that flash/tools.py registers a real read tool and the tool prompt tells the model to use it, this earlier system-prompt sentence still says there is no read tool and to use shell instead. For file-inspection requests the model can follow the stale higher-level instruction and bypass the new numbered, paged reader, so update this list to exclude only tools that truly do not exist.

Useful? React with 👍 / 👎.

Comment thread flash/tools.py
if isinstance(old_lines, str):
tool_result(old_lines, style=ERROR)
return old_lines
old_text = "\n".join(old_lines)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve line endings when building the write diff

For existing files, reconstructing old_text from _read_lines() strips the final newline and normalizes line endings before _diff_preview runs. If the proposed content differs only by removing the final newline, trailing blank lines, or CRLF/LF bytes, the confirmation preview can report No changes while the later write still changes the file, so compare against the raw text or keep line endings in the diff input.

Useful? React with 👍 / 👎.

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

Labels

release Official release pull request. Allows merging directly into main.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant