Skip to content

feat(context): announce the current note in the turn text - #80

Open
luoxuanzao wants to merge 3 commits into
mainfrom
feat/announce-current-note
Open

luoxuanzao wants to merge 3 commits into
mainfrom
feat/announce-current-note

Conversation

@luoxuanzao

Copy link
Copy Markdown
Member

Summary

  • The agent now learns which note you are viewing from the message text itself: the turn you send after switching notes carries the new path as a <current_note> tag, and switching conversations reports it again, so the chip above the composer is no longer needed and is removed.
  • Older messages that still carry <linked_note> keep working — the tag was renamed to current_note, and the prompt context accepts both.
  • The "Excluded tags" setting is the way to keep a note out of context now; the changelog calls that out under Removed.
  • Documented under [Unreleased] in CHANGELOG.md (Changed + Removed). The branch was just rebased onto the latest main (1.0.15); the changelog fix-up that the rebase required is its own commit.

Verification

  • npm run typecheck
  • npm run lint
  • npm run test (171 suites, 3586 tests)
  • npm run build
  • npm run release:check
  • npm run audit:prod
  • Tested affected qodercli behavior against a real CLI when applicable — no CLI behavior is involved; the change shapes the turn text Qoderian sends. Not yet exercised in a running Obsidian.

Safety

  • No credentials, private vault content, internal URLs, or personal paths are included
  • User-visible changes are documented in CHANGELOG.md

luoxuanzao and others added 3 commits September 22, 2026 09:00
The chip above the composer showed which note was attached, but the note was
sent only once per session, so the agent kept assuming a stale note after the
user switched. Drop the chip and resolve the active note when a turn is built
instead: append <linked_note> to the turn text only when it changed since the
last announcement — first turn, note switch, reopening after close — and
replay it once after a session switch, mirroring <external_context>. Excluded
tags still keep a note out of context.
The tag carries the note the user is viewing and is sent when it changes, so
current_note says what it is; linked_note stays understood as the legacy name
and the system prompt now explains both.
Rebasing onto main moved them into the released 1.0.12 section, since that
is where their neighbouring context lines now live.

Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
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.

1 participant