Update Context Selection Agent preamble [devtools/devtools-frontend : main]

0 views
Skip to first unread message

Nikolay Vitkov (Gerrit)

unread,
12:51 PM (2 hours ago) 12:51 PM
to Jack Franklin, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Jack Franklin

Nikolay Vitkov voted Auto-Submit+1

Auto-Submit+1
Open in Gerrit

Related details

Attention is currently required from:
  • Jack Franklin
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I3dd005b26573953ef92d62ebc284094ee3dec2db
Gerrit-Change-Number: 7628382
Gerrit-PatchSet: 1
Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Jack Franklin <jacktf...@chromium.org>
Gerrit-Comment-Date: Tue, 03 Mar 2026 17:51:44 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Jack Franklin (Gerrit)

unread,
12:55 PM (2 hours ago) 12:55 PM
to Nikolay Vitkov, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Nikolay Vitkov

Jack Franklin added 2 comments

Commit Message
Line 9, Patchset 2 (Latest):The proved a better requery of the model.
Jack Franklin . unresolved

nit: a couple of typos - "the proved" and "requery" ?

File front_end/models/ai_assistance/agents/ContextSelectionAgent.ts
Line 57, Patchset 2 (Latest):* The only available are type \`#req\` for network request and \`#file\` for source files. Only use ID inside the link, never ask about user selecting by ID.
Jack Franklin . unresolved

The only available types are?

Open in Gerrit

Related details

Attention is currently required from:
  • Nikolay Vitkov
Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: devtools/devtools-frontend
    Gerrit-Branch: main
    Gerrit-Change-Id: I3dd005b26573953ef92d62ebc284094ee3dec2db
    Gerrit-Change-Number: 7628382
    Gerrit-PatchSet: 2
    Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
    Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
    Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
    Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Attention: Nikolay Vitkov <nvi...@chromium.org>
    Gerrit-Comment-Date: Tue, 03 Mar 2026 17:55:28 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Jack Franklin (Gerrit)

    unread,
    12:55 PM (2 hours ago) 12:55 PM
    to Nikolay Vitkov, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
    Attention needed from Nikolay Vitkov

    Jack Franklin voted and added 1 comment

    Votes added by Jack Franklin

    Code-Review+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 2 (Latest):
    Jack Franklin . resolved

    lgtm - please ensure it is updated on the server side, th!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Nikolay Vitkov
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: devtools/devtools-frontend
    Gerrit-Branch: main
    Gerrit-Change-Id: I3dd005b26573953ef92d62ebc284094ee3dec2db
    Gerrit-Change-Number: 7628382
    Gerrit-PatchSet: 2
    Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
    Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
    Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
    Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Attention: Nikolay Vitkov <nvi...@chromium.org>
    Gerrit-Comment-Date: Tue, 03 Mar 2026 17:55:54 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Jack Franklin (Gerrit)

    unread,
    12:56 PM (2 hours ago) 12:56 PM
    to Nikolay Vitkov, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
    Attention needed from Nikolay Vitkov

    Jack Franklin added 1 comment

    Patchset-level comments
    Jack Franklin . resolved

    lgtm - please ensure it is updated on the server side, th!

    Jack Franklin

    thanks*! 😊

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Nikolay Vitkov
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: devtools/devtools-frontend
    Gerrit-Branch: main
    Gerrit-Change-Id: I3dd005b26573953ef92d62ebc284094ee3dec2db
    Gerrit-Change-Number: 7628382
    Gerrit-PatchSet: 2
    Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
    Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
    Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
    Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Attention: Nikolay Vitkov <nvi...@chromium.org>
    Gerrit-Comment-Date: Tue, 03 Mar 2026 17:56:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Jack Franklin <jacktf...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Nikolay Vitkov (Gerrit)

    unread,
    1:01 PM (2 hours ago) 1:01 PM
    to Jack Franklin, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org

    Nikolay Vitkov voted and added 2 comments

    Votes added by Nikolay Vitkov

    Auto-Submit+1
    Commit-Queue+2

    2 comments

    Commit Message
    Line 9, Patchset 2:The proved a better requery of the model.
    Jack Franklin . resolved

    nit: a couple of typos - "the proved" and "requery" ?

    Nikolay Vitkov

    Done

    File front_end/models/ai_assistance/agents/ContextSelectionAgent.ts
    Line 57, Patchset 2:* The only available are type \`#req\` for network request and \`#file\` for source files. Only use ID inside the link, never ask about user selecting by ID.
    Jack Franklin . resolved

    The only available types are?

    Nikolay Vitkov

    Done

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: devtools/devtools-frontend
      Gerrit-Branch: main
      Gerrit-Change-Id: I3dd005b26573953ef92d62ebc284094ee3dec2db
      Gerrit-Change-Number: 7628382
      Gerrit-PatchSet: 4
      Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
      Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
      Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
      Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Comment-Date: Tue, 03 Mar 2026 18:01:30 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Jack Franklin <jacktf...@chromium.org>
      satisfied_requirement
      open
      diffy

      Nikolay Vitkov (Gerrit)

      unread,
      1:02 PM (2 hours ago) 1:02 PM
      to Jack Franklin, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org

      Nikolay Vitkov added 1 comment

      Patchset-level comments
      Jack Franklin . resolved

      lgtm - please ensure it is updated on the server side, th!

      Jack Franklin

      thanks*! 😊

      Nikolay Vitkov

      Yes there is a separate bug so I don't forget 😂

      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: devtools/devtools-frontend
      Gerrit-Branch: main
      Gerrit-Change-Id: I3dd005b26573953ef92d62ebc284094ee3dec2db
      Gerrit-Change-Number: 7628382
      Gerrit-PatchSet: 4
      Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
      Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
      Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
      Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Comment-Date: Tue, 03 Mar 2026 18:02:01 +0000
      satisfied_requirement
      open
      diffy

      Devtools-frontend LUCI CQ (Gerrit)

      unread,
      1:58 PM (1 hour ago) 1:58 PM
      to Nikolay Vitkov, Jack Franklin, devtools-rev...@chromium.org

      Devtools-frontend LUCI CQ submitted the change with unreviewed changes

      Unreviewed changes

      2 is the latest approved patch-set.
      The change was submitted with unreviewed changes in the following files:

      ```
      The name of the file: front_end/models/ai_assistance/agents/ContextSelectionAgent.ts
      Insertions: 1, Deletions: 1.

      @@ -54,7 +54,7 @@
      * **CRITICAL** NEVER output text before a function call. Always do a function call first.
      * **CRITICAL** You are a debugging assistant in DevTools. NEVER provide answers to questions of unrelated topics such as legal advice, financial advice, personal opinions, medical advice, religion, race, politics, sexuality, gender, or any other non web-development topics. Answer "Sorry, I can't answer that. I'm best at questions about debugging web pages." to such questions.
      * **CRITICAL** When referring to DevTools resource output a markdown link to the object using the format \`[<text>](#<type>-<ID>)\`.
      -* The only available are type \`#req\` for network request and \`#file\` for source files. Only use ID inside the link, never ask about user selecting by ID.
      +* The only available types are \`#req\` for network request and \`#file\` for source files. Only use ID inside the link, never ask about user selecting by ID.
      `;

      /**
      ```

      Change information

      Commit message:
      Update Context Selection Agent preamble

      This makes the model more likely to try different function calls before giving up and giving a generic answer.
      It also makes is less likely to link non linkable resources like panels [Network](#panels-network).


      Fixed: 485827504
      Change-Id: I3dd005b26573953ef92d62ebc284094ee3dec2db
      Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7628382
      Commit-Queue: Nikolay Vitkov <nvi...@chromium.org>
      Reviewed-by: Jack Franklin <jacktf...@chromium.org>
      Auto-Submit: Nikolay Vitkov <nvi...@chromium.org>
      Files:
      • M front_end/models/ai_assistance/agents/ContextSelectionAgent.ts
      Change size: XS
      Delta: 1 file changed, 5 insertions(+), 4 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Jack Franklin
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: devtools/devtools-frontend
      Gerrit-Branch: main
      Gerrit-Change-Id: I3dd005b26573953ef92d62ebc284094ee3dec2db
      Gerrit-Change-Number: 7628382
      Gerrit-PatchSet: 5
      Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
      Gerrit-Reviewer: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages