From 4cef97d29aec8fcf09383e5f9db5258e8f47003a Mon Sep 17 00:00:00 2001 From: can1357 Date: Sun, 11 Jan 2026 04:33:22 +0100 Subject: [PATCH] feat: changed find tool to include hidden files by default, added test job to publish workflow - Changed default for `hidden` option in find tool from `false` to `true`, now including hidden files by default. - Added test job to publish workflow that runs before build. --- .github/workflows/publish.yml | 22 ++++++++++++++++++++ packages/coding-agent/CHANGELOG.md | 7 ++++++- packages/coding-agent/src/core/tools/find.ts | 4 ++-- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e6d69b88f..0bfcdb4c7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,8 +20,30 @@ permissions: id-token: write jobs: + test: + runs-on: ubuntu-latest + env: + RELEASE_TAG: ${{ github.event.inputs.tag || github.ref_name }} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: ${{ env.RELEASE_TAG }} + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install dependencies + run: bun install + + - name: Run tests + run: bun test + build: runs-on: ubuntu-latest + needs: test env: RELEASE_TAG: ${{ github.event.inputs.tag || github.ref_name }} steps: diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index bb17b944c..8d6c7fd59 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog ## [Unreleased] + +### Changed + +- Changed default for `hidden` option in find tool from `false` to `true`, now including hidden files by default + ### Fixed - Fixed serialized auth storage initialization so OAuth refreshes in subagents don't crash @@ -2204,4 +2209,4 @@ Initial public release. - Git branch display in footer - Message queueing during streaming responses - OAuth integration for Gmail and Google Calendar access -- HTML export with syntax highlighting and collapsible sections +- HTML export with syntax highlighting and collapsible sections \ No newline at end of file diff --git a/packages/coding-agent/src/core/tools/find.ts b/packages/coding-agent/src/core/tools/find.ts index 6b58ed1a9..1086a68a9 100644 --- a/packages/coding-agent/src/core/tools/find.ts +++ b/packages/coding-agent/src/core/tools/find.ts @@ -20,7 +20,7 @@ const findSchema = Type.Object({ }), path: Type.Optional(Type.String({ description: "Directory to search in (default: current directory)" })), limit: Type.Optional(Type.Number({ description: "Maximum number of results (default: 1000)" })), - hidden: Type.Optional(Type.Boolean({ description: "Include hidden files (default: false)" })), + hidden: Type.Optional(Type.Boolean({ description: "Include hidden files (default: true)" })), sortByMtime: Type.Optional( Type.Boolean({ description: "Sort results by modification time, most recent first (default: false)" }), ), @@ -143,7 +143,7 @@ export function createFindTool(session: ToolSession, options?: FindToolOptions): })(); const effectiveLimit = limit ?? DEFAULT_LIMIT; const effectiveType = type ?? "all"; - const includeHidden = hidden ?? false; + const includeHidden = hidden ?? true; const shouldSortByMtime = sortByMtime ?? false; // If custom operations provided with glob, use that instead of fd